From owner-acpi-jp@jp.freebsd.org  Fri Nov  9 12:47:45 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id MAA13238;
	Fri, 9 Nov 2001 12:47:45 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from tasogare.imasy.or.jp (root@tasogare.imasy.or.jp [202.227.24.5])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id MAA13231
	for <acpi-jp@jp.freebsd.org>; Fri, 9 Nov 2001 12:47:44 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Received: from localhost (iwasaki.imasy.or.jp [202.227.24.92])
	(authenticated as iwa with CRAM-MD5)
	by tasogare.imasy.or.jp (8.11.6+3.4W/8.11.6/tasogare) with ESMTP/inet id fA93leW14920;
	Fri, 9 Nov 2001 12:47:40 +0900 (JST)
	(envelope-from iwasaki@jp.FreeBSD.org)
Date: Fri, 09 Nov 2001 12:47:36 +0900 (JST)
Message-Id: <20011109.124736.74756033.iwasaki@jp.FreeBSD.org>
To: acpi-jp@jp.freebsd.org, t-kouchi@mvf.biglobe.ne.jp
Cc: robert.moore@intel.com, seno@necsystems.com
From: Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
In-Reply-To: <20011108162233.1144.T-KOUCHI@mvf.biglobe.ne.jp>
	<20011108.025705.74755948.iwasaki@jp.FreeBSD.org>
References: <B9ECACBD6885D5119ADC00508B68C1EA2FDFFC@orsmsx107.jf.intel.com>
	<20011108162233.1144.T-KOUCHI@mvf.biglobe.ne.jp>
X-Mailer: Mew version 2.0 on Emacs 20.7 / Mule 4.0 (HANANOEN)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1462
Subject: [acpi-jp 1462] Re: acpica-unix-20011102 is out
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: iwasaki@jp.freebsd.org

Hi,

> > is offset from the datum,  StartFieldBitOffset seems to be 
> >  (FieldBitPosition - ObjDesc->CommonField.BaseByteOffset * 8);

This solves 2nd problem, not only my test case but also
AcpiGetCurrentResources().
Thanks alot Bob, Kochi-san and Senoo-san!

And,
> 1. Store operation to reference of local variable is broken again.
> 
> Method(GBFE,3)
> {
>         CreateByteField(Arg0, Arg1, TIDX)
>         Store(TIDX, Arg2)
> }
> Method(BUG1)
> {
>         Store(Buffer(0xd) {0x0, 0x18, 0x10, 0x0}, Local2)
>         Store(1, Local1)
>         GBFE(Local2, Local1, RefOf(Local3))
>         if (Local3) {
>                 Store("OK", DEBUG)
>         }
> }

this problem, I've not get some time to track down, but I got debug traces
of Store operation from 20011018 and 20011102 version.

20011018:
 exstore-0161 [10] ExStore               : ----Entry 0x8090fa8
dsmthdat-0757 [11] DsMethodDataSetValue  : ----Entry
dsmthdat-0759 [11] DsMethodDataSetValue  : Opcode=104 Idx=2 Obj=0x8095028
dsmthdat-0355 [12] DsMethodDataGetEntry  : ----Entry 00000002
dsmthdat-0399 [12] DsMethodDataGetEntry  : ----Exit- AE_OK
dsmthdat-0814 [11] DsMethodDataSetValue  : Arg (0x8095028) is an ObjRef(Node), storing in 0x808d14c
nsobject-0352 [12] NsDetachObject        : ----Entry
nsobject-0358 [12] NsDetachObject        : ----Exit-
nsobject-0161 [12] NsAttachObject        : ----Entry
nsobject-0293 [12] NsAttachObject        : Installing 0x8095028 into Node 0x808d14c [__L3]

20011102:
 exstore-0161 [10] ExStore               : ----Entry 0x808ffa8
dsmthdat-0661 [11] DsStoreObjectToLocal  : ----Entry
dsmthdat-0663 [11] DsStoreObjectToLocal  : Opcode=104 Idx=2 Obj=0x8094028
dsmthdat-0330 [12] DsMethodDataGetNode   : ----Entry
dsmthdat-0372 [12] DsMethodDataGetNode   : ----Exit- AE_OK
dsmthdat-0716 [11] DsStoreObjectToLocal  : Arg (0x8094028) is an ObjRef(Node), storing in 0x808c54c
nsobject-0287 [12] NsDetachObject        : ----Entry
nsobject-0302 [12] NsDetachObject        : Object=0x808c884 Value=0x808c54c Name __A2
utdelete-0727 [13] UtRemoveReference     : ----Entry 0x808c54c
utdelete-0738 [13] UtRemoveReference     : ----Exit-
nsobject-0307 [12] NsDetachObject        : ----Exit-
nsobject-0161 [12] NsAttachObject        : ----Entry
nsobject-0245 [12] NsAttachObject        : Installing 0x8094028 into Node 0x808c884 [__A2]

In 20011102 version, object reference to caller's Local3 is detached and the
value is sotred into current Arg2.  It seems to be the cause, I think.

Thanks

