2020-10-31 11:18:15 +00:00
|
|
|
Index: acpica-unix2-20200925/source/components/tables/tbutils.c
|
2020-10-14 19:30:47 +00:00
|
|
|
===================================================================
|
2020-10-31 11:18:15 +00:00
|
|
|
--- acpica-unix2-20200925.orig/source/components/tables/tbutils.c
|
|
|
|
+++ acpica-unix2-20200925/source/components/tables/tbutils.c
|
2020-10-14 19:30:47 +00:00
|
|
|
@@ -238,9 +238,11 @@ AcpiTbGetRootTableEntry (
|
|
|
|
* 64-bit platform, XSDT: Move (unaligned) 64-bit to local,
|
|
|
|
* return 64-bit
|
|
|
|
*/
|
2020-10-31 11:18:15 +00:00
|
|
|
- ACPI_MOVE_64_TO_64 (&Address64, TableEntry);
|
2020-10-14 19:30:47 +00:00
|
|
|
|
|
|
|
#if ACPI_MACHINE_WIDTH == 32
|
|
|
|
+ UINT32 Tmp32 = (UINT32) TableEntry;
|
|
|
|
+
|
|
|
|
+ Address64 = (UINT64) Tmp32;
|
|
|
|
if (Address64 > ACPI_UINT32_MAX)
|
|
|
|
{
|
|
|
|
/* Will truncate 64-bit address to 32 bits, issue warning */
|
2020-10-31 11:18:15 +00:00
|
|
|
@@ -250,8 +252,14 @@ AcpiTbGetRootTableEntry (
|
2020-10-14 19:30:47 +00:00
|
|
|
" truncating",
|
|
|
|
ACPI_FORMAT_UINT64 (Address64)));
|
|
|
|
}
|
|
|
|
-#endif
|
|
|
|
+
|
|
|
|
+ return ((ACPI_PHYSICAL_ADDRESS) (*ACPI_CAST_PTR (
|
|
|
|
+ UINT32, TableEntry)));
|
|
|
|
+#else
|
|
|
|
+ Address64 = (UINT64) TableEntry;
|
|
|
|
+
|
2020-10-31 11:18:15 +00:00
|
|
|
return ((ACPI_PHYSICAL_ADDRESS) (Address64));
|
2020-10-14 19:30:47 +00:00
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-31 11:18:15 +00:00
|
|
|
Index: acpica-unix2-20200925/source/compiler/aslparseop.c
|
2020-10-14 19:30:47 +00:00
|
|
|
===================================================================
|
2020-10-31 11:18:15 +00:00
|
|
|
--- acpica-unix2-20200925.orig/source/compiler/aslparseop.c
|
|
|
|
+++ acpica-unix2-20200925/source/compiler/aslparseop.c
|
|
|
|
@@ -289,7 +289,11 @@ TrCreateValuedLeafOp (
|
2020-10-14 19:30:47 +00:00
|
|
|
ParseOpcode == PARSEOP_NAMESEG ||
|
|
|
|
ParseOpcode == PARSEOP_STRING_LITERAL)
|
|
|
|
{
|
|
|
|
+#if ACPI_MACHINE_WIDTH == 32
|
|
|
|
+ Op->Asl.Value.String = (char *) (UINT32) Value;
|
|
|
|
+#else
|
|
|
|
Op->Asl.Value.String = (char *) Value;
|
|
|
|
+#endif
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|