summaryrefslogtreecommitdiff
path: root/include/efi_api.h
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-02-04 23:05:13 +0100
committerAlexander Graf <agraf@suse.de>2018-02-10 00:24:00 +0100
commit9f0930e5d9c71a97b14f8993b3d3150a79b6a2ef (patch)
treeeed18f7dcd9d13fbb5bfc37f8c81c889888ffd0d /include/efi_api.h
parentae86b6be122f880224ba3e569d3e86d6b9553bb7 (diff)
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>
Diffstat (limited to 'include/efi_api.h')
-rw-r--r--include/efi_api.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/efi_api.h b/include/efi_api.h
index 205f8f1f70..10598a22d5 100644
--- a/include/efi_api.h
+++ b/include/efi_api.h
@@ -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 */