[U-Boot] [PATCH v2 0/2] efi_loader: eliminate handle member

Heinrich Schuchardt xypron.glpk at gmx.de
Tue Sep 25 10:19:16 UTC 2018


Up to now we have treated handles as separate objects to EFI objects. This
confusion has lead to hidden bugs like those corrected by the first patch.
By changing the efi_handle_t typedef we can avoid this problem in future.

As handles are pointers to EFI objects there is no need for a handle member
in struct efi_object. This allows to simplify our coding.

v2
	replace remaining parent.handle in efi_disk.c
	https://travis-ci.org/xypron2/u-boot/builds/432798389 shows only
	unrelated errors

Heinrich Schuchardt (2):
  efi_loader: typedef struct efi_object *efi_handle_t
  efi_loader: eliminate handle member

 cmd/bootefi.c                              |  4 +-
 include/efi.h                              |  2 +-
 include/efi_api.h                          |  8 +--
 include/efi_loader.h                       | 26 +++++---
 lib/efi/efi.c                              |  2 +-
 lib/efi_loader/efi_boottime.c              | 77 +++++++++++-----------
 lib/efi_loader/efi_console.c               | 20 +++---
 lib/efi_loader/efi_device_path.c           |  2 +-
 lib/efi_loader/efi_disk.c                  | 14 ++--
 lib/efi_loader/efi_gop.c                   |  2 +-
 lib/efi_loader/efi_net.c                   |  6 +-
 lib/efi_selftest/efi_selftest_devicepath.c |  2 +-
 12 files changed, 86 insertions(+), 79 deletions(-)

-- 
2.19.0



More information about the U-Boot mailing list