mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
efi_loader: create stub for CreateEventEx
Currently we set the function pointer for the CreateEventEx boot service to NULL. When called this would lead to an immediate failure. A function stub is provided which handles the case that the boot service is called without an event group and returns EFI_UNSUPPORTED otherwise. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:

committed by
Alexander Graf

parent
ae86b6be12
commit
9f0930e5d9
@ -166,7 +166,14 @@ struct efi_boot_services {
|
||||
void (EFIAPI *copy_mem)(void *destination, const void *source,
|
||||
size_t length);
|
||||
void (EFIAPI *set_mem)(void *buffer, size_t size, uint8_t value);
|
||||
void *create_event_ex;
|
||||
efi_status_t (EFIAPI *create_event_ex)(
|
||||
uint32_t type, efi_uintn_t notify_tpl,
|
||||
void (EFIAPI *notify_function) (
|
||||
struct efi_event *event,
|
||||
void *context),
|
||||
void *notify_context,
|
||||
efi_guid_t *event_group,
|
||||
struct efi_event **event);
|
||||
};
|
||||
|
||||
/* Types and defines for EFI ResetSystem */
|
||||
|
Reference in New Issue
Block a user