From owner-acpi-jp@jp.freebsd.org  Fri Nov  9 09:24:57 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id JAA01614;
	Fri, 9 Nov 2001 09:24:57 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from rcpt-expgw.biglobe.ne.jp (rcpt-expgw.biglobe.ne.jp [210.147.6.232])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id JAA01608;
	Fri, 9 Nov 2001 09:24:55 +0900 (JST)
	(envelope-from t-kouchi@mvf.biglobe.ne.jp)
Received: from smtp-gw.biglobe.ne.jp
	by rcpt-expgw.biglobe.ne.jp (8.9.3+3.2W/3.7W-01102415) with ESMTP id JAA23301;
	Fri, 9 Nov 2001 09:25:00 +0900 (JST)
X-Biglobe-Sender: <t-kouchi@mvf.biglobe.ne.jp>
Received: from versa (61.200.7.232 [61.200.7.232]) by smtp-gw.biglobe.ne.jp
	id JAAIC0A82654; Fri, 09 Nov 2001 09:24:52 +0900 (JST)
Date: Thu, 08 Nov 2001 16:24:50 -0800
From: "KOCHI, Takayoshi" <t-kouchi@mvf.biglobe.ne.jp>
To: "Moore, Robert" <robert.moore@intel.com>,
        "'seno@necsystems.com'" <seno@necsystems.com>,
        "'acpi-jp@jp.freebsd.org'" <acpi-jp@jp.freebsd.org>,
        "'Mitsuru IWASAKI'" <iwasaki@jp.freebsd.org>
In-Reply-To: <B9ECACBD6885D5119ADC00508B68C1EA2FDFFC@orsmsx107.jf.intel.com>
References: <B9ECACBD6885D5119ADC00508B68C1EA2FDFFC@orsmsx107.jf.intel.com>
Message-Id: <20011108162233.1144.T-KOUCHI@mvf.biglobe.ne.jp>
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
X-Mailer: Becky! ver. 2.00.03
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1461
Subject: [acpi-jp 1461] Re: acpica-unix-20011102 is out
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: t-kouchi@mvf.biglobe.ne.jp

On Fri, 9 Nov 2001 06:51:59 +0900 
"Moore, Robert" <robert.moore@intel.com> wrote:

> Since the BaseByteOffset takes into account the alignment to generate the
> byte address of the first field datum, subtracting the BaseBitOffset
> (BaseByteOffset * 8) from the starting FieldBitPosition should also give us
> the correct bit offset. 
> 
> I like your solution, no divide. 
> Bob

This solution looks good to me, too.

> -----Original Message-----
> From: Kenichi Senoo [mailto:seno@necsystems.com]
> Sent: Thursday, November 08, 2001 1:21 PM
> To: acpi-jp@jp.freebsd.org; 'Mitsuru IWASAKI'
> Cc: Grover, Andrew; acpi-jp@jp.freebsd.org; 'KOCHI, Takayoshi'
> Subject: [acpi-jp 1459] Re: acpica-unix-20011102 is out
> 
> 
> Hi,
> Since the datum is read from BaseByteOffset and the StartFieldBitOffset
> is offset from the datum,  StartFieldBitOffset seems to be 
>  (FieldBitPosition - ObjDesc->CommonField.BaseByteOffset * 8);
> 
> > 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);
> -- 
>  Kenichi Senoh, NEC Systems, Inc.

Regards,
-- 
KOCHI Takayoshi <t-kouchi@cq.jp.nec.com/t-kouchi@mvf.biglobe.ne.jp>

