]> git.pld-linux.org Git - packages/acpica.git/blob - name-miscompare.patch
use OPT_LDFLAGS
[packages/acpica.git] / name-miscompare.patch
1 On big-endian machines, a test case looking for the methods _L1D and _E1D
2 in the same scope would fail (see tests/misc/badcode.asl:184).  The names
3 to be compared were being treated as 32-bit ints, and not strings.  Hence,
4 the characters were re-ordered incorrectly, mismatching the assumptions
5 made in the remainder of the function.
6
7 diff -urN acpica-unix2-20130214/source/compiler/aslanalyze.c acpica-unix2-20130214-names/source/compiler/aslanalyze.c
8 --- acpica-unix2-20130214/source/compiler/aslanalyze.c  2013-03-21 17:31:25.803324990 -0600
9 +++ acpica-unix2-20130214-names/source/compiler/aslanalyze.c    2013-03-21 17:43:45.357616802 -0600
10 @@ -445,7 +445,7 @@
11  
12      /* Need a null-terminated string version of NameSeg */
13  
14 -    ACPI_MOVE_32_TO_32 (Name, &Op->Asl.NameSeg);
15 +    ACPI_MOVE_NAME (Name, &Op->Asl.NameSeg);
16      Name[ACPI_NAME_SIZE] = 0;
17  
18      /*
19 @@ -472,7 +472,7 @@
20       * We are now sure we have an _Lxx or _Exx.
21       * Create the target name that would cause collision (Flip E/L)
22       */
23 -    ACPI_MOVE_32_TO_32 (Target, Name);
24 +    ACPI_MOVE_NAME (Target, Name);
25  
26      /* Inject opposite letter ("L" versus "E") */
27  
This page took 0.060824 seconds and 3 git commands to generate.