X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=include%2Facpi%2Facinterp.h;h=91586d0d5bb57f8d4ea26602bcd31aafbce391e3;hb=71120061f271f00d8280659bf12e065ca6533d4d;hp=216339a8f1f662114856c8448c50ebb069490beb;hpb=9262e9149f346a5443300f8c451b8e7631e81a42;p=~andy%2Flinux diff --git a/include/acpi/acinterp.h b/include/acpi/acinterp.h index 216339a8f1f..91586d0d5bb 100644 --- a/include/acpi/acinterp.h +++ b/include/acpi/acinterp.h @@ -53,10 +53,14 @@ #define ACPI_EXD_TABLE_SIZE(name) (sizeof(name) / sizeof (struct acpi_exdump_info)) /* - * If possible, pack the following structure to byte alignment, since we - * don't care about performance for debug output + * If possible, pack the following structures to byte alignment, since we + * don't care about performance for debug output. Two cases where we cannot + * pack the structures: + * + * 1) Hardware does not support misaligned memory transfers + * 2) Compiler does not support pointers within packed structures */ -#ifndef ACPI_MISALIGNMENT_NOT_SUPPORTED +#if (!defined(ACPI_MISALIGNMENT_NOT_SUPPORTED) && !defined(ACPI_PACKED_POINTERS_NOT_SUPPORTED)) #pragma pack(1) #endif