Bug 5389
Summary: | Unexpected dereference of Index reference immediately passed to Method | ||
---|---|---|---|
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.
proposed patch |
Description
Valery A Podrezov
2005-10-07 07:56:22 UTC
Created attachment 6251 [details]
ASL code to reproduce bug.
The attached program demonstrates both ways to pass reference -
to pass it immediately to Method and store at first to Local and
then only pass it to Method by Local. The output of demo shows
that the references (Index references) passed to Method by the
first way are visible from inside Method as objects but not
references to them. And that is wrong.
They should remain references (as in second way) and the
following access to them (from inside Method) could be performed
either by DerefOf (Read access) or without applying DerefOf
(taking into account the Read/Write access automatic dereference).
INTERNAL BUG NUMBER
113
This bug still exist at ACPICA-v20070912 Created attachment 13399 [details]
proposed patch
If method call - leave the Reference on the stack
*** Bug 5390 has been marked as a duplicate of this bug. *** shipped in linux-2.6.25-git16 e5bcc811f78f294e7be8a0721b3fb513028c5af4 ACPICA: Fixed a problem with Index references passed as method arguments |