mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
efi_loader: update runtime services table crc32
The crc32 of the runtime services table must be updated after detaching. efi_update_table_header_crc32() must be __efi_runtime. So move it to efi_runtime.c Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
483dbab9f9
commit
a39f39cdd8
3 changed files with 18 additions and 12 deletions
|
@ -153,18 +153,6 @@ const char *__efi_nesting_dec(void)
|
|||
return indent_string(--nesting_level);
|
||||
}
|
||||
|
||||
/**
|
||||
* efi_update_table_header_crc32() - Update CRC32 in table header
|
||||
*
|
||||
* @table: EFI table
|
||||
*/
|
||||
static void efi_update_table_header_crc32(struct efi_table_hdr *table)
|
||||
{
|
||||
table->crc32 = 0;
|
||||
table->crc32 = crc32(0, (const unsigned char *)table,
|
||||
table->headersize);
|
||||
}
|
||||
|
||||
/**
|
||||
* efi_queue_event() - queue an EFI event
|
||||
* @event: event to signal
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue