X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Facpi%2Facresrc.h;h=80a3b33571b4c44df62457225e64d56f65a84fea;hb=15a1c5140436c5be7673a4709c5d7e1f3cd7bdd9;hp=ad11fc13fbefc933c7184c9a1b970682ee8c8559;hpb=61fb46c5b3578fda7cc780e8bc53b3e8f8c1a143;p=powerpc.git diff --git a/include/acpi/acresrc.h b/include/acpi/acresrc.h index ad11fc13fb..80a3b33571 100644 --- a/include/acpi/acresrc.h +++ b/include/acpi/acresrc.h @@ -50,9 +50,13 @@ /* * If possible, pack the following structures to byte alignment, since we - * don't care about performance for debug output + * 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