aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-06-28 12:45:27 +0200
committerAlexander Graf <agraf@suse.de>2018-07-25 14:59:44 +0200
commit112f24301696d015e25090d713e2e5c73f4b8a3c (patch)
tree40dea7157a0650f33e92ae64f5223200852809ce /lib
parente67ff94deda15f344af62b46ef21b3bb10d1c0f1 (diff)
downloadu-boot-112f24301696d015e25090d713e2e5c73f4b8a3c.zip
u-boot-112f24301696d015e25090d713e2e5c73f4b8a3c.tar.gz
u-boot-112f24301696d015e25090d713e2e5c73f4b8a3c.tar.bz2
efi_loader: specify UEFI spec revision
Both in the boot and the runtime services tables we have to specify the UEFI spec revision. The same value is already used for the system table. So let's use a common constant. In the boot services table we have to provide the header signature. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_boottime.c4
-rw-r--r--lib/efi_loader/efi_runtime.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index 1869856..9a0c323 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -3058,6 +3058,8 @@ out:
static const struct efi_boot_services efi_boot_services = {
.hdr = {
+ .signature = EFI_BOOT_SERVICES_SIGNATURE,
+ .revision = EFI_SPECIFICATION_VERSION,
.headersize = sizeof(struct efi_table_hdr),
},
.raise_tpl = efi_raise_tpl,
@@ -3113,7 +3115,7 @@ static uint16_t __efi_runtime_data firmware_vendor[] = L"Das U-Boot";
struct efi_system_table __efi_runtime_data systab = {
.hdr = {
.signature = EFI_SYSTEM_TABLE_SIGNATURE,
- .revision = 2 << 16 | 70, /* 2.7 */
+ .revision = EFI_SPECIFICATION_VERSION,
.headersize = sizeof(struct efi_table_hdr),
},
.fw_vendor = (long)firmware_vendor,
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c
index dd3ff8a..cfa60b8 100644
--- a/lib/efi_loader/efi_runtime.c
+++ b/lib/efi_loader/efi_runtime.c
@@ -459,7 +459,7 @@ efi_status_t __efi_runtime EFIAPI efi_query_variable_info(
struct efi_runtime_services __efi_runtime_data efi_runtime_services = {
.hdr = {
.signature = EFI_RUNTIME_SERVICES_SIGNATURE,
- .revision = EFI_RUNTIME_SERVICES_REVISION,
+ .revision = EFI_SPECIFICATION_VERSION,
.headersize = sizeof(struct efi_table_hdr),
},
.get_time = &efi_get_time_boottime,