diff options
| author | Michael Brown | 2020-10-16 15:12:56 +0200 |
|---|---|---|
| committer | Michael Brown | 2020-10-16 16:36:37 +0200 |
| commit | 2bf0fd39cafcfaf9a2a66f1f22bbe36640a72b6c (patch) | |
| tree | 9ccf01f8b1b9606204fc77e925983b69da20e7c4 /src/interface/efi/efi_init.c | |
| parent | [efi] Provide EFI_INTF_OP for EFI-only interface operations (diff) | |
| download | ipxe-2bf0fd39cafcfaf9a2a66f1f22bbe36640a72b6c.tar.gz ipxe-2bf0fd39cafcfaf9a2a66f1f22bbe36640a72b6c.tar.xz ipxe-2bf0fd39cafcfaf9a2a66f1f22bbe36640a72b6c.zip | |
[efi] Split device path functions out to efi_path.c
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface/efi/efi_init.c')
| -rw-r--r-- | src/interface/efi/efi_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interface/efi/efi_init.c b/src/interface/efi/efi_init.c index 70212b184..6d46c5669 100644 --- a/src/interface/efi/efi_init.c +++ b/src/interface/efi/efi_init.c @@ -26,7 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <ipxe/rotate.h> #include <ipxe/efi/efi.h> #include <ipxe/efi/efi_driver.h> -#include <ipxe/efi/efi_utils.h> +#include <ipxe/efi/efi_path.h> #include <ipxe/efi/Protocol/LoadedImage.h> /** Image handle passed to entry point */ @@ -252,7 +252,7 @@ EFI_STATUS efi_init ( EFI_HANDLE image_handle, * path, since the device handle itself may become invalidated * when we load our own drivers. */ - device_path_len = ( efi_devpath_len ( device_path ) + + device_path_len = ( efi_path_len ( device_path ) + sizeof ( EFI_DEVICE_PATH_PROTOCOL ) ); if ( ( efirc = bs->AllocatePool ( EfiBootServicesData, device_path_len, &device_path_copy ) ) != 0 ) { |
