diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2020-03-17 11:12:37 +0900 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-03-17 08:29:52 +0100 |
commit | 74b44875357378c83e4bd150c0b759ca6ae6563a (patch) | |
tree | 11b7576bfcf3db88ee69ccceae35096cf51dbfa0 /include/efi_api.h | |
parent | b51ec639788bdf8220de458f49498d9f19f65b2b (diff) | |
download | u-boot-74b44875357378c83e4bd150c0b759ca6ae6563a.tar.gz u-boot-74b44875357378c83e4bd150c0b759ca6ae6563a.tar.bz2 u-boot-74b44875357378c83e4bd150c0b759ca6ae6563a.zip |
efi_loader: correct a definition of struct efi_capsule_header
See UEFI specification, section 8.5.3.
In addition, the structure, efi_capsule_header, should be "packed"
as it is a serialized binary format in a capsule file.
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r-- | include/efi_api.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/efi_api.h b/include/efi_api.h index 3b0845aafd..4713da2e1d 100644 --- a/include/efi_api.h +++ b/include/efi_api.h @@ -217,11 +217,11 @@ enum efi_reset_type { #define CAPSULE_FLAGS_INITIATE_RESET 0x00040000 struct efi_capsule_header { - efi_guid_t *capsule_guid; + efi_guid_t capsule_guid; u32 header_size; u32 flags; u32 capsule_image_size; -}; +} __packed; #define EFI_RT_SUPPORTED_GET_TIME 0x0001 #define EFI_RT_SUPPORTED_SET_TIME 0x0002 |