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
|
@ -417,6 +417,9 @@ static inline int guidcmp(const efi_guid_t *g1, const efi_guid_t *g2)
|
|||
#define __efi_runtime_data __attribute__ ((section (".data.efi_runtime")))
|
||||
#define __efi_runtime __attribute__ ((section (".text.efi_runtime")))
|
||||
|
||||
/* Update CRC32 in table header */
|
||||
void __efi_runtime efi_update_table_header_crc32(struct efi_table_hdr *table);
|
||||
|
||||
/* Call this with mmio_ptr as the _pointer_ to a pointer to an MMIO region
|
||||
* to make it available at runtime */
|
||||
efi_status_t efi_add_runtime_mmio(void *mmio_ptr, u64 len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue