Re: Question about AML code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 23, 2009 at 12:09 PM, Edward Shao<laface.tw@xxxxxxxxx> wrote:
> Dear folk,
>
> Sorry, I does not familiar with ASL.
> I would like to ask if below ASL is valid or not.
>
> While (LLess (Local0, 0x0B))
> {
>        Name (_T_0, Zero)
>        Store (LCDD, _T_0)
>        If (LEqual (_T_0, 0x01DFE430))
>        {
>                ...
>        }
>        Else
>        {
>                ...
>        }
> }
>
> I got ACPI error like below.
> [   37.457772] nssearch-0145 [12] ns_search_one_scope   : Name [_T_0]
> (Integer) f7444780 found in scope [GBQC] f741cc00
> [   37.457775] ACPI Error (dswload-0790): [_T_0] Namespace lookup
> failure, AE_ALREADY_EXISTS
> [   37.457779]  dsutils-0089 [08] ds_clear_implicit_retu: Removing
> reference on stale implicit return obj f772d348
> [   37.457782] ACPI Exception (psloop-0227): AE_ALREADY_EXISTS, During
> name lookup/catalog [20081204]

It's because _T_0 is created multiple times in the while loop.
You can move "Name (_T_0, Zero)" outside of the while loop, as below,

Name (_T_0, Zero)
While (LLess (Local0, 0x0B))
{
    Store (LCDD, _T_0)
    .....
}

Lin Ming
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux