From owner-acpi-jp@jp.freebsd.org  Sun Nov 19 01:35:16 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id BAA06249;
	Sun, 19 Nov 2000 01:35:16 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.50.200])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id BAA06244
	for <acpi-jp@jp.freebsd.org>; Sun, 19 Nov 2000 01:35:16 +0900 (JST)
	(envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp)
Received: from shidahara1.planet.sci.kobe-u.ac.jp (localhost [127.0.0.1])
	by shidahara1.planet.sci.kobe-u.ac.jp (8.9.3/8.9.3) with ESMTP id BAA46850
	for <acpi-jp@jp.freebsd.org>; Sun, 19 Nov 2000 01:35:06 +0900 (JST)
	(envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp)
Message-Id: <200011181635.BAA46850@shidahara1.planet.sci.kobe-u.ac.jp>
To: acpi-jp@jp.freebsd.org
In-reply-to: Your message of "Sat, 18 Nov 2000 06:39:24 PST."
             <200011181439.eAIEdOF04987@mass.osd.bsdi.com>
Date: Sun, 19 Nov 2000 01:35:06 +0900
From: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+000315
X-Sequence: acpi-jp 906
Subject: [acpi-jp 906] Re: FYI: ACPICA new version. 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: takawata@shidahara1.planet.sci.kobe-u.ac.jp

In message <200011181439.eAIEdOF04987@mass.osd.bsdi.com>, Mike Smith $B$5$s$$$o$/(B
:
>> I also tried to make acpica new version work.
>> and I now managed to run it.
>> 
>> I need to keep mutex untouched in boot sequence, Or it ends up with 
>> Double fault or something.
>
>How -current are you?  I have no trouble booting this code, but only on  
>a very simple system (ASUS-P2B).

Begining of this month.Previous version of acpica worked,though.

>> If the bug is not fixed, I cannot get battery status correctly.
>
>Can you be more specific about the problem(s)?
>
As I mentioned before, I don't investigate the problem completely.
But I think this problem is occur in following ASL code.
Actual ASL code is TP240.asl's UPBS(UPdateBatteryStatus?) and GBFE method .
(http://www.jp.freebsd.org/cgi/cvsweb.cgi/ACPI/data/TP240.asl?rev=1.1&cvsroot=freebsd-jp)

Method(GBFE,3)  // GetByteFieldEntry?
{
        CreateByteField(Arg0, Arg1, TIDX)
        Store(TIDX, Arg2)
}

Method(AAAA)
{
	Store(Buffer(){1 , 2 , 3, 4},Local0)
	Store(3,Local1)
	While(Local1){
		GBFE(Local0,Local1,RefOf(Local2))
		Decrement(Local1)
		(*)
	}
}

In this method the problem is that Local2 is always 4 at (*) point,
though it is expected to be vary in 4 , 3 ,2 ,1 sequence.

$BEOJUB:5*(B
$B?@8MBg3XBg3X1!<+A32J3X8&5f2J(BD3$B>pJs%a%G%#%"2J3X@l96(B
<a href="http://www.planet.sci.kobe-u.ac.jp/~takawata/key.html">
Public Key</a>
Key fingerprint =  2C 51 E2 78 2C E1 C5 2D  0F F1 20 A3 11 3A 62 2A 

