diff options
| author | Heinrich Schuchardt <[email protected]> | 2018-06-28 12:45:31 +0200 |
|---|---|---|
| committer | Alexander Graf <[email protected]> | 2018-07-25 15:00:24 +0200 |
| commit | 640adadf811e9c229ddec597595a00db3f5304b0 (patch) | |
| tree | 5bc66727594be4185571bede4c91d8cf437d6380 /cmd | |
| parent | 0b386537a51d5ac6e2da022ade49424ecc50ffa1 (diff) | |
efi_loader: calculate crc32 for EFI tables
For the boot and runtime services tables and for the system table the
crc32 has to be set in the header.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Bin Meng <[email protected]>
Signed-off-by: Alexander Graf <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/bootefi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 4097277c9cc..e57e70fc612 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@ -44,6 +44,11 @@ efi_status_t efi_init_obj_list(void) if (efi_obj_list_initialized != OBJ_LIST_NOT_INITIALIZED) return efi_obj_list_initialized; + /* Initialize system table */ + ret = efi_initialize_system_table(); + if (ret != EFI_SUCCESS) + goto out; + /* Initialize EFI driver uclass */ ret = efi_driver_init(); if (ret != EFI_SUCCESS) |
