summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/linker_lists.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linker_lists.h b/include/linker_lists.h
index 940c871281..b22d169d97 100644
--- a/include/linker_lists.h
+++ b/include/linker_lists.h
@@ -103,6 +103,16 @@
*/
/**
+ * ll_sym() - Access a linker-generated array entry
+ * @_type: Data type of the entry
+ * @_name: Name of the entry
+ * @_list: name of the list. Should contain only characters allowed
+ * in a C variable name!
+ */
+#define llsym(_type, _name, _list) \
+ ((_type *)&_u_boot_list_2_##_list##_2_##_name)
+
+/**
* ll_entry_declare() - Declare linker-generated array entry
* @_type: Data type of the entry
* @_name: Name of the entry