diff options
author | xypron.glpk@gmx.de <xypron.glpk@gmx.de> | 2017-07-11 22:06:24 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2017-07-19 14:14:40 +0200 |
commit | 88adae5ef057845f6bc69c63123df4332fe835b1 (patch) | |
tree | 349755e54709b23c59264acedea2cd510615727b /cmd | |
parent | 011f432745ae7fdb645e16c03382a4181d262619 (diff) | |
download | u-boot-88adae5ef057845f6bc69c63123df4332fe835b1.tar.gz u-boot-88adae5ef057845f6bc69c63123df4332fe835b1.tar.bz2 u-boot-88adae5ef057845f6bc69c63123df4332fe835b1.zip |
efi_loader: reimplement efi_locate_protocol
The UEFI specification requires that LocateProtol finds the first
handle supporting the protocol and to return a pointer to its
interface.
So we have to assign the protocols to an efi_object and not use
any separate storage.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bootefi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c index 2a56ad7f58..8453d90b2c 100644 --- a/cmd/bootefi.c +++ b/cmd/bootefi.c @@ -80,6 +80,10 @@ static struct efi_object loaded_image_info_obj = { .guid = &efi_guid_device_path, .protocol_interface = bootefi_device_path, }, + { + .guid = &efi_guid_console_control, + .protocol_interface = (void *) &efi_console_control + }, }, }; |