summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-05-20 13:23:57 +0200
committerTom Rini <trini@konsulko.com>2021-05-24 14:21:30 -0400
commit82836973115171d1d8ff5fa874b075672ac08f58 (patch)
tree95d547db3df3503d61368b5c574ae1a5fa80c178 /include
parent2bdc6f579b698ea32cf112310e903238d92a3c5a (diff)
downloadu-boot-82836973115171d1d8ff5fa874b075672ac08f58.tar.gz
u-boot-82836973115171d1d8ff5fa874b075672ac08f58.tar.xz
u-boot-82836973115171d1d8ff5fa874b075672ac08f58.zip
efi_loader: add Sphinx doc for __efi_runtime and __efi_runtime_data
Document the macros __efi_runtime and __efi_runtime_data in Sphinx style. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r--include/efi_loader.h29
1 files changed, 26 insertions, 3 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h
index ea03af43c2..cfd68e329c 100644
--- a/include/efi_loader.h
+++ b/include/efi_loader.h
@@ -678,11 +678,34 @@ ssize_t efi_dp_check_length(const struct efi_device_path *dp,
(((_dp)->type == DEVICE_PATH_TYPE_##_type) && \
((_dp)->sub_type == DEVICE_PATH_SUB_TYPE_##_subtype))
-/*
- * Use these to indicate that your code / data should go into the EFI runtime
- * section and thus still be available when the OS is running
+/**
+ * __efi_runtime_data - declares a non-const variable for EFI runtime section
+ *
+ * This macro indicates that a variable is non-const and should go into the
+ * EFI runtime section, and thus still be available when the OS is running.
+ *
+ * Only use on variables not declared const.
+ *
+ * Example:
+ *
+ * ::
+ *
+ * static __efi_runtime_data my_computed_table[256];
*/
#define __efi_runtime_data __section(".data.efi_runtime")
+
+/**
+ * __efi_runtime - declares a function for EFI runtime section
+ *
+ * This macro indicates that a function should go into the EFI runtime section,
+ * and thus still be available when the OS is running.
+ *
+ * Example:
+ *
+ * ::
+ *
+ * static __efi_runtime compute_my_table(void);
+ */
#define __efi_runtime __section(".text.efi_runtime")
/* Indicate supported runtime services */