Package: acpica-unix / 20181213-1

mips-be-fix.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Index: acpica-unix-20180508/source/compiler/aslparseop.c
===================================================================
--- acpica-unix-20180508.orig/source/compiler/aslparseop.c
+++ acpica-unix-20180508/source/compiler/aslparseop.c
@@ -283,7 +283,16 @@ TrCreateValuedLeafOp (
 
 
     Op = TrAllocateOp (ParseOpcode);
-    Op->Asl.Value.Integer = Value;
+    if (ParseOpcode == PARSEOP_NAMESTRING ||
+        ParseOpcode == PARSEOP_NAMESEG ||
+        ParseOpcode == PARSEOP_STRING_LITERAL)
+    {
+        Op->Asl.Value.String = (char *) Value;
+    }
+    else
+    {
+        Op->Asl.Value.Integer = Value;
+    }
 
     DbgPrint (ASL_PARSE_OUTPUT,
         "\nCreateValuedLeafOp  Ln/Col %u/%u NewOp %p  "
Index: acpica-unix-20180508/source/include/platform/aclinux.h
===================================================================
--- acpica-unix-20180508.orig/source/include/platform/aclinux.h
+++ acpica-unix-20180508/source/include/platform/aclinux.h
@@ -227,10 +227,8 @@
 #endif
 
 #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
-#if defined(__PPC64__) || defined(__s390x__)
 #define ACPI_BIG_ENDIAN
 #endif
-#endif
 
 #endif /* __KERNEL__ */