X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Facpi%2Facresrc.h;h=9486ab266a5e24b898e427d90f289b2988595b87;hb=0529c159dbdd79794796c1b50b39442d72efbe97;hp=ad11fc13fbefc933c7184c9a1b970682ee8c8559;hpb=199f4c9f76fd8b030405abddf294e771f888de03;p=powerpc.git diff --git a/include/acpi/acresrc.h b/include/acpi/acresrc.h index ad11fc13fb..9486ab266a 100644 --- a/include/acpi/acresrc.h +++ b/include/acpi/acresrc.h @@ -5,7 +5,7 @@ *****************************************************************************/ /* - * Copyright (C) 2000 - 2006, R. Byron Moore + * Copyright (C) 2000 - 2007, R. Byron Moore * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -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