X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Flinker_lists.h;h=b22d169d97966766122dd41a6e0c3aa573c0ec04;hb=cc08ea4cff827f0929744d8d0134422e01c1f2b5;hp=d37fba44dcafc6b1ce6813cca4e8f3d6999e95d5;hpb=dee8abcd80d0981f7a1c2bb5d1f2e9313fddf189;p=oweals%2Fu-boot.git diff --git a/include/linker_lists.h b/include/linker_lists.h index d37fba44dc..b22d169d97 100644 --- a/include/linker_lists.h +++ b/include/linker_lists.h @@ -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 * @@ -102,6 +102,16 @@ * %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