[PATCH v2 35/39] efi: Mention that efi_info_get() is only used in the stub

Simon Glass sjg at chromium.org
Sat Sep 25 02:30:51 CEST 2021


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 at chromium.org>
---

Changes in v2:
- Fix 'as' typo

 include/efi.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/efi.h b/include/efi.h
index e04ef942161..8198394e7e0 100644
--- a/include/efi.h
+++ b/include/efi.h
@@ -580,6 +580,10 @@ void efi_putc(struct efi_priv *priv, const char ch);
 /**
  * efi_info_get() - get an entry from an EFI table
  *
+ * This 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 stuff, 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
-- 
2.33.0.685.g46640cef36-goog



More information about the U-Boot mailing list