[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] coreboot: Remove GRUB_PACKED from grub_linuxbios_mem_region stru
From: |
Joonas Kylmälä |
Subject: |
[PATCH] coreboot: Remove GRUB_PACKED from grub_linuxbios_mem_region struct |
Date: |
Thu, 30 Apr 2020 21:36:51 +0300 |
GRUB_PACKED allowed only using this struct with architectures
that use 4 byte or less aligned memory pointers. Coreboot doesn't use
the packed attribute when writing this to the coreboot table meaning
it is safe to remove GRUB_PACKED here.
This change makes it now possible to support 64 bit architectures that
expect 8 byte aligned pointers.
Signed-off-by: Joonas Kylmälä <address@hidden>
---
include/grub/coreboot/lbio.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/grub/coreboot/lbio.h b/include/grub/coreboot/lbio.h
index 5076d36c7..3a640fcae 100644
--- a/include/grub/coreboot/lbio.h
+++ b/include/grub/coreboot/lbio.h
@@ -97,7 +97,7 @@ struct grub_linuxbios_mem_region
grub_uint64_t size;
#define GRUB_MACHINE_MEMORY_AVAILABLE 1
grub_uint32_t type;
-} GRUB_PACKED;
+};
typedef struct grub_linuxbios_mem_region *mem_region_t;
grub_err_t
--
2.20.1
- [PATCH] coreboot: Remove GRUB_PACKED from grub_linuxbios_mem_region struct,
Joonas Kylmälä <=