#define ll_entry_ref(_type, _name, _list) \
((_type *)&_u_boot_list_2_##_list##_2_##_name)
-/**
- * ll_start() - Point to first entry of first linker-generated array
- * @_type: Data type of the entry
- *
- * This function returns ``(_type *)`` pointer to the very first entry of
- * the very first linker-generated array.
- *
- * Since this macro defines the start of the linker-generated arrays,
- * its leftmost index must be 1.
- *
- * Example:
- *
- * ::
- *
- * struct my_sub_cmd *msc = ll_start(struct my_sub_cmd);
- */
-#define ll_start(_type) \
-({ \
- static char start[0] __aligned(4) __attribute__((unused)) \
- __section("__u_boot_list_1"); \
- _type * tmp = (_type *)&start; \
- asm("":"+r"(tmp)); \
- tmp; \
-})
-
-/**
- * ll_end() - Point after last entry of last linker-generated array
- * @_type: Data type of the entry
- *
- * This function returns ``(_type *)`` pointer after the very last entry of
- * the very last linker-generated array.
- *
- * Since this macro defines the end of the linker-generated arrays,
- * its leftmost index must be 3.
- *
- * Example:
- *
- * ::
- *
- * struct my_sub_cmd *msc = ll_end(struct my_sub_cmd);
- */
-#define ll_end(_type) \
-({ \
- static char end[0] __aligned(4) __attribute__((unused)) \
- __section("__u_boot_list_3"); \
- _type * tmp = (_type *)&end; \
- asm("":"+r"(tmp)); \
- tmp; \
-})
-
#endif /* __ASSEMBLY__ */
#endif /* __LINKER_LISTS_H__ */