efi_loader: Separate device path into its own header
These functions are useful for the EFI app. As a first step towards making these available outside lib/efi_loader, create a separate header file and include it where needed. Add proper comments to the functions, since many are missing at present. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:

committed by
Heinrich Schuchardt

parent
df2ed552f0
commit
f4bbd7b9fa
@@ -12,6 +12,7 @@
|
||||
#include <charset.h>
|
||||
#include <dm.h>
|
||||
#include <efi.h>
|
||||
#include <efi_device_path.h>
|
||||
#include <log.h>
|
||||
#include <malloc.h>
|
||||
#include <net.h>
|
||||
@@ -527,7 +528,7 @@ static efi_status_t try_load_from_uri_path(struct efi_device_path_uri *uridp,
|
||||
* will be freed in return_to_efibootmgr event callback.
|
||||
*/
|
||||
loaded_dp = efi_dp_from_mem(EFI_RESERVED_MEMORY_TYPE,
|
||||
(uintptr_t)image_addr, image_size);
|
||||
image_addr, image_size);
|
||||
ret = efi_install_multiple_protocol_interfaces(
|
||||
&mem_handle, &efi_guid_device_path, loaded_dp, NULL);
|
||||
if (ret != EFI_SUCCESS)
|
||||
|
Reference in New Issue
Block a user