X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Flinker_lists.h;h=b22d169d97966766122dd41a6e0c3aa573c0ec04;hb=cc08ea4cff827f0929744d8d0134422e01c1f2b5;hp=940c87128194b654c364c477fc3ba864a523ffc0;hpb=307367eaffc8638e10ba1784fc66bfe623ae79e2;p=oweals%2Fu-boot.git 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 @@ -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