]>
Commit | Line | Data |
---|---|---|
b643ab7e | 1 | Index: acpica-unix2-20220331/source/components/tables/tbutils.c |
25d7dd99 | 2 | =================================================================== |
b643ab7e JB |
3 | --- acpica-unix2-20220331.orig/source/components/tables/tbutils.c |
4 | +++ acpica-unix2-20220331/source/components/tables/tbutils.c | |
25d7dd99 JB |
5 | @@ -238,9 +238,11 @@ AcpiTbGetRootTableEntry ( |
6 | * 64-bit platform, XSDT: Move (unaligned) 64-bit to local, | |
7 | * return 64-bit | |
8 | */ | |
b643ab7e | 9 | - ACPI_MOVE_64_TO_64 (&Address64, TableEntry); |
25d7dd99 JB |
10 | |
11 | #if ACPI_MACHINE_WIDTH == 32 | |
12 | + UINT32 Tmp32 = (UINT32) TableEntry; | |
13 | + | |
14 | + Address64 = (UINT64) Tmp32; | |
15 | if (Address64 > ACPI_UINT32_MAX) | |
16 | { | |
17 | /* Will truncate 64-bit address to 32 bits, issue warning */ | |
b643ab7e | 18 | @@ -250,8 +252,14 @@ AcpiTbGetRootTableEntry ( |
25d7dd99 JB |
19 | " truncating", |
20 | ACPI_FORMAT_UINT64 (Address64))); | |
21 | } | |
22 | -#endif | |
23 | + | |
24 | + return ((ACPI_PHYSICAL_ADDRESS) (*ACPI_CAST_PTR ( | |
25 | + UINT32, TableEntry))); | |
26 | +#else | |
27 | + Address64 = (UINT64) TableEntry; | |
28 | + | |
b643ab7e | 29 | return ((ACPI_PHYSICAL_ADDRESS) (Address64)); |
25d7dd99 JB |
30 | +#endif |
31 | } | |
32 | } | |
33 | ||
b643ab7e | 34 | Index: acpica-unix2-20220331/source/compiler/aslparseop.c |
25d7dd99 | 35 | =================================================================== |
b643ab7e JB |
36 | --- acpica-unix2-20220331.orig/source/compiler/aslparseop.c |
37 | +++ acpica-unix2-20220331/source/compiler/aslparseop.c | |
38 | @@ -289,7 +289,11 @@ TrCreateValuedLeafOp ( | |
25d7dd99 JB |
39 | ParseOpcode == PARSEOP_NAMESEG || |
40 | ParseOpcode == PARSEOP_STRING_LITERAL) | |
41 | { | |
42 | +#if ACPI_MACHINE_WIDTH == 32 | |
43 | + Op->Asl.Value.String = (char *) (UINT32) Value; | |
44 | +#else | |
45 | Op->Asl.Value.String = (char *) Value; | |
46 | +#endif | |
47 | } | |
48 | else | |
49 | { |