Bug 5328
Summary: | Access to FieldObject element of Package causes exception | ||
---|---|---|---|
Product: | ACPI | Reporter: | Valery A Podrezov (Valery.A.Podrezov) |
Component: | ACPICA-Core | Assignee: | Lin Ming (ming.m.lin) |
Status: | CLOSED CODE_FIX | ||
Severity: | normal | CC: | acpi-bugzilla |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.6 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: | ASL code to reproduce bug. |
Description
Valery A Podrezov
2005-09-29 09:05:06 UTC
Created attachment 6186 [details]
ASL code to reproduce bug.
The attached demo program shows that if the BufferField or FieldUnit
type objects are elements of some Package and we attempt to retrieve
the values of those elements, than exception AE_AML_OPERAND_TYPE occurs.
INTERNAL BUG NUMBER
118
Maybe it's NOT a bug. The code of #1 failed in "LNotEqual(Local1, 0x59)", Local1 here is of type BufferField, but the Spec 30b says in section 17.5.66, both arguments of LNotEqual must each evaluate to an integer, a string, or a buffer, --------------------------------------------------------------------------- Syntax LNotEqual (Source1, Source2) => Boolean Arguments Source1 and Source2 must each evaluate to an integer, a string, or a buffer. The data type of Source1 dictates the required type of Source2. Source2 is implicitly converted if necessary to match the type of Source1. --------------------------------------------------------------------------- I think that the BufferField and Field should be resolved to integers at the time the Packages are created, since the ACPI spec says that package elements can be "data objects" (Integers, Strings, Buffers, Packages) or "control method references"). I'll take this since I have that code open right now for a very similar problem. Bob This bug still exists at latest ACPICA (v20071019) Oh, sorry, seems it's not a bug now. since the BufferField and Field have been resolved to integers at the time the Packages are created. Bob, shoule we close this bug now? Close this bug. In the latest ACPICA (v20071019), the BufferField and Field would be resolved to integers at the time the Packages are created, as per ACPI spec. |