1 Make AslLookup endian independent
3 From: Al Stone <ahs3@redhat.com>
7 source/compiler/asllookup.c | 4 +++-
8 1 file changed, 3 insertions(+), 1 deletion(-)
10 Index: acpica-unix2-20161222/source/compiler/asllookup.c
11 ===================================================================
12 --- acpica-unix2-20161222.orig/source/compiler/asllookup.c
13 +++ acpica-unix2-20161222/source/compiler/asllookup.c
14 @@ -119,6 +119,7 @@ LkIsObjectUsed (
16 ACPI_NAMESPACE_NODE *Node = ACPI_CAST_PTR (ACPI_NAMESPACE_NODE, ObjHandle);
17 ACPI_NAMESPACE_NODE *Next;
18 + ACPI_NAME_UNION tmp, tmp2;
19 ASL_METHOD_LOCAL *MethodLocals;
20 ASL_METHOD_LOCAL *MethodArgs;
22 @@ -228,8 +229,10 @@ LkIsObjectUsed (
23 * Issue a remark even if it is a reserved name (starts
24 * with an underscore).
26 + ACPI_MOVE_32_TO_32(&tmp.Ascii, Node->Name.Ascii);
27 + ACPI_MOVE_32_TO_32(&tmp2.Ascii, Next->Name.Ascii);
28 sprintf (MsgBuffer, "Name [%4.4s] is within a method [%4.4s]",
29 - Node->Name.Ascii, Next->Name.Ascii);
30 + tmp.Ascii, tmp2.Ascii);
31 AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED,
32 LkGetNameOp (Node->Op), MsgBuffer);