summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2015-12-02 11:54:05 +0000
committerYASUOKA Masahiko <yasuoka@cvs.openbsd.org>2015-12-02 11:54:05 +0000
commitcfc34333f382375bdcf7db5ee0ea73ddd8171cb0 (patch)
treeaa7d8b7d6ad02bf9ca0fc7bac8752e582eb458c9
parent38ed4a54d416f907b738befd8813eb7382e4639a (diff)
Add a padding in EFI_MEMORY_DESCRIPTOR to align fields properly on ia32.
-rw-r--r--sys/arch/amd64/stand/efi/include/efidef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arch/amd64/stand/efi/include/efidef.h b/sys/arch/amd64/stand/efi/include/efidef.h
index 3bd66642aba..772818b7bea 100644
--- a/sys/arch/amd64/stand/efi/include/efidef.h
+++ b/sys/arch/amd64/stand/efi/include/efidef.h
@@ -178,6 +178,7 @@ typedef enum {
#define EFI_MEMORY_DESCRIPTOR_VERSION 1
typedef struct {
UINT32 Type; // Field size is 32 bits followed by 32 bit pad
+ UINT32 Pad;
EFI_PHYSICAL_ADDRESS PhysicalStart; // Field size is 64 bits
EFI_VIRTUAL_ADDRESS VirtualStart; // Field size is 64 bits
UINT64 NumberOfPages; // Field size is 64 bits