summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2016-04-11 16:16:19 +0200
committerTom Rini <trini@konsulko.com>2016-04-18 17:11:36 -0400
commitc07ad7c03588ab7b8f87b6567ac9202cf32b9bbe (patch)
treebfa7f6f159289a0710aeca70ccd12e1f4f6a7c24 /include
parent8c3df0bf2e530c6e6f592f5144ef4f456c9e0260 (diff)
downloadtalos-obmc-uboot-c07ad7c03588ab7b8f87b6567ac9202cf32b9bbe.tar.gz
talos-obmc-uboot-c07ad7c03588ab7b8f87b6567ac9202cf32b9bbe.zip
efi_loader: Pass file path to payload
The payload gets information on where it got loaded from. This includes the device as well as file path. So far we've treated both as the same thing and always gave it the device name. However, in some situations grub2 actually wants to find its loading path to find its configuration file. So let's split the two semantically separte bits into separate structs and pass the loaded file name into our payload when we load it using "load". Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'include')
-rw-r--r--include/efi_loader.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index 9f61fc4b12..88b8149b14 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -112,7 +112,7 @@ efi_status_t efi_exit_func(efi_status_t ret);
/* Call this to relocate the runtime section to an address space */
void efi_runtime_relocate(ulong offset, struct efi_mem_desc *map);
/* Call this to set the current device name */
-void efi_set_bootdev(const char *dev, const char *devnr);
+void efi_set_bootdev(const char *dev, const char *devnr, const char *path);
/* Generic EFI memory allocator, call this to get memory */
void *efi_alloc(uint64_t len, int memory_type);
@@ -155,6 +155,7 @@ static inline void ascii2unicode(u16 *unicode, char *ascii)
/* No loader configured, stub out EFI_ENTRY */
static inline void efi_restore_gd(void) { }
-static inline void efi_set_bootdev(const char *dev, const char *devnr) { }
+static inline void efi_set_bootdev(const char *dev, const char *devnr,
+ const char *path) { }
#endif
OpenPOWER on IntegriCloud