2018-07-12 14:56:34 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2018-02-27 18:56:41 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Tue, 27 Feb 2018 13:55:35 -0500
|
2018-07-10 18:39:10 +00:00
|
|
|
Subject: [PATCH] align struct efi_variable better...
|
2018-02-27 18:56:41 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
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
|
2024-10-18 18:18:00 +00:00
|
|
|
index 2ff42984545..6363fd522e1 100644
|
2018-02-27 18:56:41 +00:00
|
|
|
--- 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
|
2024-10-18 18:18:00 +00:00
|
|
|
index 064066e2e18..59e030268c2 100644
|
2018-02-27 18:56:41 +00:00
|
|
|
--- a/include/grub/types.h
|
|
|
|
+++ b/include/grub/types.h
|
2024-10-18 18:18:00 +00:00
|
|
|
@@ -30,6 +30,7 @@
|
2018-02-27 18:56:41 +00:00
|
|
|
#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
|