diff options
Diffstat (limited to 'meta-linaro/recipes-extra/acpica/files/debian-unaligned.patch')
-rw-r--r-- | meta-linaro/recipes-extra/acpica/files/debian-unaligned.patch | 55 |
1 files changed, 26 insertions, 29 deletions
diff --git a/meta-linaro/recipes-extra/acpica/files/debian-unaligned.patch b/meta-linaro/recipes-extra/acpica/files/debian-unaligned.patch index 31b9fe56..ce59177a 100644 --- a/meta-linaro/recipes-extra/acpica/files/debian-unaligned.patch +++ b/meta-linaro/recipes-extra/acpica/files/debian-unaligned.patch @@ -15,11 +15,11 @@ Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> source/include/actypes.h | 26 +++++++++++++------------- 3 file modificati, 32 inserzioni(+), 21 rimozioni(-) -diff --git a/source/compiler/asltree.c b/source/compiler/asltree.c -index ebf87f3..fd859d7 100644 ---- a/source/compiler/asltree.c -+++ b/source/compiler/asltree.c -@@ -577,28 +577,31 @@ TrCreateValuedLeafNode ( +Index: foo/source/compiler/asltree.c +=================================================================== +--- foo.orig/source/compiler/asltree.c 2013-08-26 13:46:12.000000000 -0600 ++++ foo/source/compiler/asltree.c 2013-08-26 13:46:12.000000000 -0600 +@@ -577,28 +577,31 @@ "\nCreateValuedLeafNode Ln/Col %u/%u NewNode %p Op %s Value %8.8X%8.8X ", Op->Asl.LineNumber, Op->Asl.Column, Op, UtGetOpName(ParseOpcode), ACPI_FORMAT_UINT64 (Value)); @@ -28,53 +28,53 @@ index ebf87f3..fd859d7 100644 switch (ParseOpcode) { case PARSEOP_STRING_LITERAL: - + - DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Value); + Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value; + DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Op->Asl.Value.String); break; case PARSEOP_NAMESEG: - + - DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Value); + Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value; + DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Op->Asl.Value.String); break; case PARSEOP_NAMESTRING: - + - DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Value); + Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value; + DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Op->Asl.Value.String); break; case PARSEOP_EISAID: - + - DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Value); + Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value; + DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Op->Asl.Value.String); break; case PARSEOP_METHOD: -@@ -608,11 +610,13 @@ TrCreateValuedLeafNode ( +@@ -608,11 +611,13 @@ case PARSEOP_INTEGER: - + + Op->Asl.Value.Integer = Value; DbgPrint (ASL_PARSE_OUTPUT, "INTEGER"); break; default: - + + Op->Asl.Value.Integer = Value; break; } -diff --git a/source/components/executer/exoparg2.c b/source/components/executer/exoparg2.c -index e55f40c..ed5b1fd 100644 ---- a/source/components/executer/exoparg2.c -+++ b/source/components/executer/exoparg2.c -@@ -175,6 +176,8 @@ AcpiExOpcode_2A_2T_1R ( +Index: foo/source/components/executer/exoparg2.c +=================================================================== +--- foo.orig/source/components/executer/exoparg2.c 2013-08-26 13:46:12.000000000 -0600 ++++ foo/source/components/executer/exoparg2.c 2013-08-26 13:46:12.000000000 -0600 +@@ -175,6 +175,8 @@ ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc1 = NULL; ACPI_OPERAND_OBJECT *ReturnDesc2 = NULL; @@ -83,7 +83,7 @@ index e55f40c..ed5b1fd 100644 ACPI_STATUS Status; -@@ -208,8 +211,10 @@ AcpiExOpcode_2A_2T_1R ( +@@ -208,8 +210,10 @@ Status = AcpiUtDivide (Operand[0]->Integer.Value, Operand[1]->Integer.Value, @@ -96,7 +96,7 @@ index e55f40c..ed5b1fd 100644 if (ACPI_FAILURE (Status)) { goto Cleanup; -@@ -283,6 +285,7 @@ AcpiExOpcode_2A_1T_1R ( +@@ -283,6 +287,7 @@ ACPI_OPERAND_OBJECT **Operand = &WalkState->Operands[0]; ACPI_OPERAND_OBJECT *ReturnDesc = NULL; UINT64 Index; @@ -104,7 +104,7 @@ index e55f40c..ed5b1fd 100644 ACPI_STATUS Status = AE_OK; ACPI_SIZE Length = 0; -@@ -328,7 +333,8 @@ AcpiExOpcode_2A_1T_1R ( +@@ -326,7 +331,8 @@ Status = AcpiUtDivide (Operand[0]->Integer.Value, Operand[1]->Integer.Value, NULL, @@ -114,11 +114,11 @@ index e55f40c..ed5b1fd 100644 break; case AML_CONCAT_OP: /* Concatenate (Data1, Data2, Result) */ -diff --git a/source/include/actypes.h b/source/include/actypes.h -index 07fb7d5..08bdf2f 100644 ---- a/source/include/actypes.h -+++ b/source/include/actypes.h -@@ -142,6 +142,19 @@ typedef COMPILER_DEPENDENT_INT64 INT64; +Index: foo/source/include/actypes.h +=================================================================== +--- foo.orig/source/include/actypes.h 2013-08-26 13:46:12.000000000 -0600 ++++ foo/source/include/actypes.h 2013-08-26 13:46:12.000000000 -0600 +@@ -142,6 +142,19 @@ */ #define ACPI_THREAD_ID UINT64 @@ -138,7 +138,7 @@ index 07fb7d5..08bdf2f 100644 /******************************************************************************* * -@@ -168,19 +181,6 @@ typedef UINT64 ACPI_PHYSICAL_ADDRESS; +@@ -168,19 +181,6 @@ #define ACPI_SIZE_MAX ACPI_UINT64_MAX #define ACPI_USE_NATIVE_DIVIDE /* Has native 64-bit integer support */ @@ -158,6 +158,3 @@ index 07fb7d5..08bdf2f 100644 /******************************************************************************* * --- -1.7.12.1 - |