Debian Codegraph @

debian/patches/arm7hl.patch

raw
1 Add macros to support 8-bit truncation for ACPI_MOVE_* operations
2
3 Index: acpica-unix-20200925/source/include/acmacros.h
4 ===================================================================
5 --- acpica-unix-20200925.orig/source/include/acmacros.h
6 +++ acpica-unix-20200925/source/include/acmacros.h
7 @@ -163,6 +163,8 @@
8
9 /* 16-bit source, 16/32/64 destination */
10
11 +#define ACPI_MOVE_16_TO_8(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[0];}
12 +
13 #define ACPI_MOVE_16_TO_16(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[0];\
14 (( UINT8 *)(void *)(d))[1] = ((UINT8 *)(void *)(s))[1];}
15
16 @@ -182,6 +184,7 @@
17
18 /* 64-bit source, 16/32/64 destination */
19
20 +#define ACPI_MOVE_64_TO_8(d, s) ACPI_MOVE_16_TO_8(d, s) /* Truncate to 8 */
21 #define ACPI_MOVE_64_TO_16(d, s) ACPI_MOVE_16_TO_16(d, s) /* Truncate to 16 */
22 #define ACPI_MOVE_64_TO_32(d, s) ACPI_MOVE_32_TO_32(d, s) /* Truncate to 32 */
23 #define ACPI_MOVE_64_TO_64(d, s) {(( UINT8 *)(void *)(d))[0] = ((UINT8 *)(void *)(s))[0];\