2016-01-07 00:44:04 +00:00
|
|
|
Make AslLookup endian independent
|
|
|
|
|
|
|
|
From: Al Stone <ahs3@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
source/compiler/asllookup.c | 4 +++-
|
|
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
|
|
|
diff --git a/source/compiler/asllookup.c b/source/compiler/asllookup.c
|
|
|
|
index 49b4901..9a1d489 100644
|
|
|
|
--- a/source/compiler/asllookup.c
|
|
|
|
+++ b/source/compiler/asllookup.c
|
2015-04-10 21:49:17 +00:00
|
|
|
@@ -119,6 +119,7 @@ LkIsObjectUsed (
|
2014-02-28 02:42:26 +00:00
|
|
|
{
|
|
|
|
ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle);
|
|
|
|
ACPI_NAMESPACE_NODE *Next;
|
|
|
|
+ ACPI_NAME_UNION tmp;
|
2015-08-04 22:47:46 +00:00
|
|
|
ASL_METHOD_LOCAL *MethodLocals;
|
|
|
|
ASL_METHOD_LOCAL *MethodArgs;
|
|
|
|
UINT32 i;
|
|
|
|
@@ -227,8 +228,9 @@ LkIsObjectUsed (
|
2014-02-28 02:42:26 +00:00
|
|
|
* Issue a remark even if it is a reserved name (starts
|
|
|
|
* with an underscore).
|
|
|
|
*/
|
|
|
|
+ ACPI_MOVE_32_TO_32(&tmp.Ascii, Next->Name.Ascii);
|
|
|
|
sprintf (MsgBuffer, "Name is within method [%4.4s]",
|
|
|
|
- Next->Name.Ascii);
|
|
|
|
+ tmp.Ascii);
|
|
|
|
AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED,
|
|
|
|
LkGetNameOp (Node->Op), MsgBuffer);
|
|
|
|
return (AE_OK);
|