summaryrefslogtreecommitdiff
path: root/include/efi_api.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-09-23 17:21:51 +0200
committerAlexander Graf <agraf@suse.de>2018-09-23 21:55:31 +0200
commitc982874e930d5d673501cd94df07bcbd215d5883 (patch)
tree83538d2ee2c50b61a6dca207d3c5f5c60fd2ebeb /include/efi_api.h
parenta47c1b5b87fcbd2bdb2e297d3c41d41c0c663967 (diff)
efi_loader: refactor efi_setup_loaded_image()
Create the handle of loaded images and the EFI_LOADED_IMAGE_PROTOCOL inside efi_setup_loaded_image(). Do not use local variables. Currently we expect the loaded image handle to point to the loaded image protocol. Additionally we have appended private fields to the protocol. With the patch the handle points to a loaded image object and the private fields are added here. This matches how we handle the net and the gop object. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r--include/efi_api.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/efi_api.h b/include/efi_api.h
index d423521d0d..bea19a5a12 100644
--- a/include/efi_api.h
+++ b/include/efi_api.h
@@ -339,14 +339,6 @@ struct efi_loaded_image {
unsigned int image_code_type;
unsigned int image_data_type;
unsigned long unload;
-
- /* Below are efi loader private fields */
-#ifdef CONFIG_EFI_LOADER
- void *reloc_base;
- aligned_u64 reloc_size;
- efi_status_t exit_status;
- struct jmp_buf_data exit_jmp;
-#endif
};
#define DEVICE_PATH_GUID \