[PATCH 0/5] efi_loader: user EfiBootServicesData for device path

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Tue Aug 17 18:02:20 CEST 2021


When creating device paths or converting the device paths to text we must
memory of type EfiBootServiceData.

Change function definitions to use enums instead of int to avoid future
misuse of constants.

Heinrich Schuchardt (5):
  efi_loader: use an enum for the memory allocation types
  efi_loader rename enum efi_mem_type to efi_memory_type
  efi_loader: use correct type for AllocatePages, AllocatePool
  efi_loader: use EfiBootServicesData for device path
  efi_loader: use EfiBootServicesData for DP to text

 arch/x86/include/asm/hob.h               |  2 +-
 include/efi.h                            | 36 +++++++++++++++++++-----
 include/efi_api.h                        |  2 +-
 include/efi_loader.h                     |  9 +++---
 lib/efi_loader/efi_device_path.c         |  2 +-
 lib/efi_loader/efi_device_path_to_text.c |  2 +-
 lib/efi_loader/efi_memory.c              |  5 ++--
 7 files changed, 41 insertions(+), 17 deletions(-)

-- 
2.30.2



More information about the U-Boot mailing list