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

Heinrich Schuchardt xypron.glpk at gmx.de
Mon Sep 24 18:04:59 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.

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                  |  8 +--
 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, 83 insertions(+), 76 deletions(-)

-- 
2.19.0



More information about the U-Boot mailing list