diff options
Diffstat (limited to 'include/acpi/acresrc.h')
| -rw-r--r-- | include/acpi/acresrc.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/acpi/acresrc.h b/include/acpi/acresrc.h index ad11fc13fbef..80a3b33571b4 100644 --- a/include/acpi/acresrc.h +++ b/include/acpi/acresrc.h | |||
| @@ -50,9 +50,13 @@ | |||
| 50 | 50 | ||
| 51 | /* | 51 | /* |
| 52 | * If possible, pack the following structures to byte alignment, since we | 52 | * If possible, pack the following structures to byte alignment, since we |
| 53 | * don't care about performance for debug output | 53 | * don't care about performance for debug output. Two cases where we cannot |
| 54 | * pack the structures: | ||
| 55 | * | ||
| 56 | * 1) Hardware does not support misaligned memory transfers | ||
| 57 | * 2) Compiler does not support pointers within packed structures | ||
| 54 | */ | 58 | */ |
| 55 | #ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED | 59 | #if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED)) |
| 56 | #pragma pack(1) | 60 | #pragma pack(1) |
| 57 | #endif | 61 | #endif |
| 58 | 62 | ||
