From owner-acpi-jp@jp.freebsd.org  Fri Nov  9 05:28:41 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id FAA87747;
	Fri, 9 Nov 2001 05:28:41 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from hermes.fm.intel.com ([192.55.52.18])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id FAA87740;
	Fri, 9 Nov 2001 05:28:37 +0900 (JST)
	(envelope-from robert.moore@intel.com)
Received: from petasus.fm.intel.com (petasus.fm.intel.com [10.1.192.37])
	by hermes.fm.intel.com (8.11.6/8.11.6/d: outer.mc,v 1.18 2001/11/06 18:55:09 root Exp $) with ESMTP id fA8KT5K12285;
	Thu, 8 Nov 2001 20:29:06 GMT
Received: from fmsmsxvs041.fm.intel.com (fmsmsxv041-1.fm.intel.com [132.233.48.109])
	by petasus.fm.intel.com (8.11.6/8.11.6/d: inner.mc,v 1.10 2001/11/06 00:25:50 root Exp $) with SMTP id fA8KT2N20900;
	Thu, 8 Nov 2001 20:29:03 GMT
Received: from fmsmsx27.fm.intel.com ([132.233.42.27])
 by fmsmsxvs041.fm.intel.com (NAVGW 2.5.1.6) with SMTP id M2001110812294910598
 ; Thu, 08 Nov 2001 12:29:49 -0800
Received: by fmsmsx27.fm.intel.com with Internet Mail Service (5.5.2653.19)
	id <W36ZW53W>; Thu, 8 Nov 2001 12:29:20 -0800
Message-ID: <B9ECACBD6885D5119ADC00508B68C1EA2FDFF8@orsmsx107.jf.intel.com>
From: "Moore, Robert" <robert.moore@intel.com>
To: "'Mitsuru IWASAKI'" <iwasaki@jp.FreeBSD.org>
Cc: "Grover, Andrew" <andrew.grover@intel.com>, acpi-jp@jp.FreeBSD.org,
        "'KOCHI, Takayoshi'" <t-kouchi@mvf.biglobe.ne.jp>
Date: Thu, 8 Nov 2001 12:28:28 -0800 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="ISO-8859-1"
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1458
Subject: [acpi-jp 1458] RE: acpica-unix-20011102 is out
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: robert.moore@intel.com


I think that the fix for the StartFieldBitOffset problem (included in the
11/02 build) must use the address granularity rather than the access bit
width.

exprep.c
/*
 * StartFieldBitOffset is the offset of the first bit of the field within a
field datum.
 */
ObjDesc->CommonField.StartFieldBitOffset  = (UINT8) (FieldBitPosition %
Alignment);

See if it works for you.
Bob

-----Original Message-----
From: Mitsuru IWASAKI [mailto:iwasaki@jp.FreeBSD.org]
Sent: Thursday, November 08, 2001 5:40 AM
To: acpi-jp@jp.FreeBSD.org; robert.moore@intel.com
Cc: andrew.grover@intel.com; iwasaki@jp.FreeBSD.org
Subject: Re: [acpi-jp 1453] RE: acpica-unix-20011102 is out


Hi, Bob.
I've found that 2nd problem is related with CreateXXXField() (such as
CreateWordField) and can be reproduced with this ASL code.

Method(BUG2)
{
        Name(RSRC, Buffer(0x4) { 0, 0, 0, 0 })
        CreateWordField(RSRC, 1, IRQ0)
        Store(0xaabb, IRQ0)
        If(LEqual(DerefOf(Index(RSRC, 1)), 0xbb)) {
                Store("OK", DEBUG)
        }
        If(LEqual(DerefOf(Index(RSRC, 2)), 0xaa)) {
                Store("OK", DEBUG)
        }
}

With 20011018 version, ACPI Namespace looks like
+- RSRC Buffer       0x8090d28 Len 04 = 00 BB AA 00
+- IRQ0 BufferField  0x8090ea8 Off 08 Len 10 Acc 16

however, 20011102 version try to store the data to wrong position.
+- RSRC Buffer       0x808fd28 Len 04 = 00 00 BB 00
+- IRQ0 BufferField  0x808fea8 Buf [RSRC] Off 10 Len 10 Acc 16

