edb6c78416
This update also means a major update for all of the big-endian patching that has been done. The older mechanism was getting to unwieldy to keep maintained, and too sensitive to upstream changes. Hence, redid all of the old patches, and took the opportunity to make them more amenable to change over time. Ultimately, the goal is to have upstream accept these in some form. Signed-off-by: Al Stone <ahs3@redhat.com>
23 lines
718 B
Diff
23 lines
718 B
Diff
Index: acpica-unix2-20200925/source/compiler/aslparseop.c
|
|
===================================================================
|
|
--- acpica-unix2-20200925.orig/source/compiler/aslparseop.c
|
|
+++ acpica-unix2-20200925/source/compiler/aslparseop.c
|
|
@@ -285,7 +285,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 "
|