diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-01 14:20:18 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-05-07 21:10:03 +0200 |
commit | cd73aba656b19d795eaf5756d5d4815d299cf07f (patch) | |
tree | 68e6574bec1cf2288e75e698e4599693e338425b /include/efi_loader.h | |
parent | 8dfb5e6e211fb9d6e1c6650617377a99342224ae (diff) | |
download | u-boot-cd73aba656b19d795eaf5756d5d4815d299cf07f.tar.gz |
efi_loader: mark started images
In UnloadImage() we need to know if an image is already started.
Add a field to the handle structure identifying loaded and started images.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include/efi_loader.h')
-rw-r--r-- | include/efi_loader.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 7af3f16ef8..3b50cd28ef 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -180,6 +180,18 @@ struct efi_handler { }; /** + * enum efi_object_type - type of EFI object + * + * In UnloadImage we must be able to identify if the handle relates to a + * started image. + */ +enum efi_object_type { + EFI_OBJECT_TYPE_UNDEFINED = 0, + EFI_OBJECT_TYPE_LOADED_IMAGE, + EFI_OBJECT_TYPE_STARTED_IMAGE, +}; + +/** * struct efi_object - dereferenced EFI handle * * @link: pointers to put the handle into a linked list @@ -201,6 +213,7 @@ struct efi_object { struct list_head link; /* The list of protocols */ struct list_head protocols; + enum efi_object_type type; }; /** |