From ba2e05fc53cd9f6f0e7a35ca0ee75877c8101df9 Mon Sep 17 00:00:00 2001 From: Al Stone Date: Jan 09 2018 21:30:04 +0000 Subject: Pull in a Debian patch for mips32/BE for completeness sake Signed-off-by: Al Stone --- diff --git a/.gitignore b/.gitignore index 1b733ce..77013d8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +series /acpica-unix2-20130823.tar.gz /acpitests-unix-20130823.tar.gz /acpica-unix2-20130927.tar.gz diff --git a/acpica-tools.spec b/acpica-tools.spec index 2679af4..4cf11c5 100644 --- a/acpica-tools.spec +++ b/acpica-tools.spec @@ -35,6 +35,7 @@ Patch8: arm7hl.patch Patch9: big-endian-v2.patch Patch10: simple-64bit.patch Patch11: be-tpm2.patch +Patch12: mips-be-fix.patch BuildRequires: bison patchutils flex @@ -96,6 +97,7 @@ gzip -dc %{SOURCE1} | tar -x --strip-components=1 -f - %patch9 -p1 -b .big-endian-v2 %patch10 -p1 -b .simple-64bit %patch11 -p1 -b .be-tpm2 +%patch12 -p1 -b .mips-be-fix cp -p %{SOURCE2} README.Fedora cp -p %{SOURCE3} iasl.1 @@ -193,6 +195,7 @@ fi * Mon Jan 8 2018 Al Stone - 20180105-1 - Update to 20180105 source tree, including patch refeshes. Closes BZ#1526651 - Cleaned up changelog. Closes BZ#1525938 +- Pulled in a mips32/BE patch from Debian, for completeness sake * Mon Jan 8 2018 Al Stone - 20171215-1 - Update to 20171215 source tree, including patch refeshes diff --git a/mips-be-fix.patch b/mips-be-fix.patch new file mode 100644 index 0000000..6c7bacf --- /dev/null +++ b/mips-be-fix.patch @@ -0,0 +1,33 @@ +--- a/source/compiler/aslparseop.c ++++ b/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 " +--- a/source/include/platform/aclinux.h ++++ b/source/include/platform/aclinux.h +@@ -225,10 +225,8 @@ + #endif + + #if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +-#if defined(__PPC64__) || defined(__s390x__) + #define ACPI_BIG_ENDIAN + #endif +-#endif + + #endif /* __KERNEL__ */ +