]> git.pld-linux.org Git - packages/acpica.git/blob - asllookup-miscompare.patch
- updated to 20170303 with current Fedora patches
[packages/acpica.git] / asllookup-miscompare.patch
1 Make AslLookup endian independent
2
3 From: Al Stone <ahs3@redhat.com>
4
5
6 ---
7  source/compiler/asllookup.c |    4 +++-
8  1 file changed, 3 insertions(+), 1 deletion(-)
9
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 (
15  {
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;
21      UINT32                  i;
22 @@ -228,8 +229,10 @@ LkIsObjectUsed (
23               * Issue a remark even if it is a reserved name (starts
24               * with an underscore).
25               */
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);
33              return (AE_OK);
This page took 0.056589 seconds and 3 git commands to generate.