]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/linker_lists.h
am335x_evm: am44xx_evm: dra7xx_evm: nand: Fix file-system partition name
[karo-tx-uboot.git] / include / linker_lists.h
index d37fba44dcafc6b1ce6813cca4e8f3d6999e95d5..b22d169d97966766122dd41a6e0c3aa573c0ec04 100644 (file)
@@ -23,7 +23,7 @@
 
 /**
  * A linker list is constructed by grouping together linker input
- * sections, each containning one entry of the list. Each input section
+ * sections, each containing one entry of the list. Each input section
  * contains a constant initialized variable which holds the entry's
  * content. Linker list input sections are constructed from the list
  * and entry names, plus a prefix which allows grouping all lists
@@ -39,7 +39,7 @@
  * This ensures uniqueness for both input section and C variable name.
  *
  * Note that the names differ only in the first character, "." for the
- * setion and "_" for the variable, so that the linker cannot confuse
+ * section and "_" for the variable, so that the linker cannot confuse
  * section and symbol names. From now on, both names will be referred
  * to as
  *
  *   %u_boot_list_2_drivers_3
  */
 
+/**
+ * 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