From: Peter Jones <pjo...@redhat.com> --- include/grub/efiemu/runtime.h | 2 +- include/grub/types.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/grub/efiemu/runtime.h b/include/grub/efiemu/runtime.h index 2ff429845..6363fd522 100644 --- a/include/grub/efiemu/runtime.h +++ b/include/grub/efiemu/runtime.h @@ -33,5 +33,5 @@ struct efi_variable grub_uint32_t namelen; grub_uint32_t size; grub_efi_uint32_t attributes; -} GRUB_PACKED; +} GRUB_PACKED GRUB_ALIGNED(8); #endif /* ! GRUB_EFI_EMU_RUNTIME_HEADER */ diff --git a/include/grub/types.h b/include/grub/types.h index 064066e2e..59e030268 100644 --- a/include/grub/types.h +++ b/include/grub/types.h @@ -30,6 +30,7 @@ #else #define GRUB_PACKED __attribute__ ((packed)) #endif +#define GRUB_ALIGNED(x) __attribute__((aligned (x))) #ifdef GRUB_BUILD # define GRUB_CPU_SIZEOF_VOID_P BUILD_SIZEOF_VOID_P -- 2.46.2 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel