Jonathan Neuschäfer has uploaded this change for review. ( https://review.coreboot.org/21346
Change subject: sb/intel/i82801jx, soc/amd/stoneyridge: Use __packed ......................................................................
sb/intel/i82801jx, soc/amd/stoneyridge: Use __packed
Change-Id: Ie654567ebff884b911de10bd9fef605436e72af8 Signed-off-by: Jonathan Neuschäfer j.neuschaefer@gmx.net --- M src/soc/amd/stoneyridge/include/soc/nvs.h M src/southbridge/intel/i82801jx/nvs.h 2 files changed, 5 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/46/21346/1
diff --git a/src/soc/amd/stoneyridge/include/soc/nvs.h b/src/soc/amd/stoneyridge/include/soc/nvs.h index 68763a9..20396bf 100644 --- a/src/soc/amd/stoneyridge/include/soc/nvs.h +++ b/src/soc/amd/stoneyridge/include/soc/nvs.h @@ -24,6 +24,7 @@ #ifndef __SOC_STONEYRIDGE_NVS_H__ #define __SOC_STONEYRIDGE_NVS_H__
+#include <compiler.h> #include <stdint.h> #include <vendorcode/google/chromeos/gnvs.h>
@@ -46,6 +47,6 @@
/* ChromeOS specific (0x100 - 0xfff) */ chromeos_acpi_t chromeos; -} __attribute__((packed)) global_nvs_t; +} __packed global_nvs_t;
#endif /* __SOC_STONEYRIDGE_NVS_H__ */ diff --git a/src/southbridge/intel/i82801jx/nvs.h b/src/southbridge/intel/i82801jx/nvs.h index 49c6fc1..c3a3920 100644 --- a/src/southbridge/intel/i82801jx/nvs.h +++ b/src/southbridge/intel/i82801jx/nvs.h @@ -13,6 +13,8 @@ * GNU General Public License for more details. */
+#include <compiler.h> + typedef struct { /* Miscellaneous */ u16 osys; /* 0x00 - Operating System */ @@ -130,6 +132,6 @@ u8 dock; /* 0xf0 - Docking Status */ u8 bten; u8 rsvd13[14]; -} __attribute__((packed)) global_nvs_t; +} __packed global_nvs_t;
void acpi_create_gnvs(global_nvs_t *gnvs);