summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-29 11:57:48 -0700
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2021-12-31 06:59:37 +0100
commitcf376037e232869fd86cf2658bdf297fbe004055 (patch)
treeb7402ae601bc400019c6fe43a5ba0fac6270fd32 /include
parentbc53a35ac526c575a91c12af21f7106d54f7a496 (diff)
downloadu-boot-cf376037e232869fd86cf2658bdf297fbe004055.tar.gz
u-boot-cf376037e232869fd86cf2658bdf297fbe004055.tar.bz2
u-boot-cf376037e232869fd86cf2658bdf297fbe004055.zip
efi: Mention that efi_info_get() is only used in the stub
This provides access to EFI tables after U-Boot has exited boot services. It is not needed in the app since boot services remain alive and we can just call them whenever needed. Add a comment to explain this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'include')
-rw-r--r--include/efi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/efi.h b/include/efi.h
index 8c3f332468..877a2e5a8d 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -566,6 +566,10 @@ void efi_putc(struct efi_priv *priv, const char ch);
/**
* efi_info_get() - get an entry from an EFI table
*
+ * This function is called from U-Boot proper to read information set up by the
+ * EFI stub. It can only be used when running from the EFI stub, not when U-Boot
+ * is running as an app.
+ *
* @type: Entry type to search for
* @datap: Returns pointer to entry data
* @sizep: Returns pointer to entry size