diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-01-12 12:40:32 +0100 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-01-13 02:38:00 +0100 |
commit | 5dad05a0e61d759af2df8cf900d044a8485bd747 (patch) | |
tree | 84e44d49c3dba2d5ab979d0f5e649777faa0cf31 /include/efi_loader.h | |
parent | dd860b90ff41e064e35a5e5cc213669c9d0868fb (diff) | |
download | u-boot-5dad05a0e61d759af2df8cf900d044a8485bd747.tar.gz u-boot-5dad05a0e61d759af2df8cf900d044a8485bd747.tar.bz2 u-boot-5dad05a0e61d759af2df8cf900d044a8485bd747.zip |
efi_loader: carve out efi_check_pe()
Carve out a function to check that a buffer contains a PE-COFF image.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 4719fa93f0..df29d45a34 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -460,6 +460,8 @@ efi_status_t efi_set_watchdog(unsigned long timeout); /* Called from places to check whether a timer expired */ void efi_timer_check(void); +/* Check if a buffer contains a PE-COFF image */ +efi_status_t efi_check_pe(void *buffer, size_t size, void **nt_header); /* PE loader implementation */ efi_status_t efi_load_pe(struct efi_loaded_image_obj *handle, void *efi, size_t efi_size, |