Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jun 2003 20:30:59 +0100
From:      Alistair Sutton <alistair.sutton@ntlworld.com>
To:        Thierry Thomas <thierry@pompo.net>
Cc:        Mailing List FreeBSD Mobile <freebsd-mobile@FreeBSD.org>
Subject:   Re: Dell 4150 & ACPI-0293: *** Warning: Buffer created with zero length in AML
Message-ID:  <20030622193059.GA5487@everlone>
In-Reply-To: <20030620191342.GB15094@graf.pompo.net>
References:  <86vfv1833q.fsf@notbsdems.interne.kisoft-services.com> <20030620170047.GA27157@graf.pompo.net> <20030620172428.GC30244@everlone> <20030620191342.GB15094@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help

--DocE+STaALJfprDB
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* Thierry Thomas (thierry@pompo.net) wrote:
> Le Ven 20 jui 03 =E0 19:24:28 +0200, Alistair Sutton <alistair.sutton@ntl=
world.com>
>  =E9crivait=A0:
> >=20
> > I've attached the patch that works for me if you want to try it.=20
>=20
> Thanks, but it seems that your attachment has been stripped. Could you
> please send it inline?

Oops. I have a mistake to admit. I don't think I actually remembered to
attach the patch last time. Sorry :-(

Mutt (for some bizarre reason) was having problems with pasting the
patch so that it was inline so I've attached it again and also put it
online here:

http://www.no-dns-yet.org.uk/~everlone/dell-acpi-patch

HTH

Alistair
--=20
LJ : http://www.livejournal.com/users/everlone
GPG/PGP: 6FA19F58 (http://wwwkeys.pgp.net)
NP:

--DocE+STaALJfprDB
Content-Type: text/plain; charset=iso-8859-15
Content-Disposition: attachment; filename=dell-acpi-patch

--- insp4150_orig.asl	Wed May 14 02:07:27 2003
+++ insp4150.asl	Tue May 27 22:18:14 2003
@@ -120,9 +120,9 @@
 
     Method (SXX5, 2, NotSerialized)
     {
-        If (LLess (Arg1, SizeOf (Arg0)))
+        If (LLess (Arg1, SizeOf (DerefOf(Arg0))))
         {
-            CreateByteField (Arg0, Arg1, SX20)
+            CreateByteField (DerefOf(Arg0), Arg1, SX20)
             SXX6 (0x7C, SX20)
         }
     }
@@ -133,16 +133,16 @@
         Store (0x00, Local0)
         While (LLess (Local0, SXX2))
         {
-            SXX5 (SXX0, Local0)
+            SXX5 (RefOf(SXX0), Local0)
             Increment (Local0)
         }
     }
 
     Method (SXX8, 2, NotSerialized)
     {
-        If (LLess (Arg1, SizeOf (Arg0)))
+        If (LLess (Arg1, SizeOf (DerefOf (Arg0))))
         {
-            CreateByteField (Arg0, Arg1, SX20)
+            CreateByteField (DerefOf(Arg0), Arg1, SX20)
             Store (SXX6 (0x7D, 0x00), SX20)
         }
     }
@@ -153,7 +153,7 @@
         While (LLess (Local0, SXX3))
         {
             Add (SXX2, Local0, Local1)
-            SXX8 (SXX0, Local1)
+            SXX8 (RefOf (SXX0), Local1)
             Increment (Local0)
         }
     }
@@ -217,9 +217,9 @@
 
     Method (SX43, 2, NotSerialized)
     {
-        If (LLess (Arg1, SizeOf (Arg0)))
+        If (LLess (Arg1, SizeOf (DerefOf(Arg0))))
         {
-            CreateByteField (Arg0, Arg1, SX20)
+            CreateByteField (DerefOf(Arg0), Arg1, SX20)
             Store (SX40 (), SX20)
         }
     }
@@ -238,7 +238,7 @@
     {
         Store (SX40 (), Local0)
         Name (SX23, Buffer (Local0) {})
-        SX44 (SX23, Local0)
+        SX44 (Refof(SX23), Local0)
         Return (SX23)
     }
 
@@ -277,7 +277,7 @@
         SX30 (Arg0)
         SX11 ()
         Name (PGET, Buffer (SXX3) {})
-        SX44 (PGET, SXX3)
+        SX44 (RefOf(PGET), SXX3)
         SX12 ()
         Return (PGET)
     }

--DocE+STaALJfprDB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030622193059.GA5487>