projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert CONFIG_SYS_INTERLAKEN et al to Kconfig
[platform/kernel/u-boot.git]
/
include
/
linker_lists.h
diff --git
a/include/linker_lists.h
b/include/linker_lists.h
index
81a280a
..
d3da9d4
100644
(file)
--- a/
include/linker_lists.h
+++ b/
include/linker_lists.h
@@
-69,8
+69,8
@@
*/
#define ll_entry_declare(_type, _name, _list) \
_type _u_boot_list_2_##_list##_2_##_name __aligned(4) \
*/
#define ll_entry_declare(_type, _name, _list) \
_type _u_boot_list_2_##_list##_2_##_name __aligned(4) \
- __attribute__((unused
,
\
-
section(".u_boot_list_2_"#_list"_2_"#_name))
)
+ __attribute__((unused
))
\
+
__section("__u_boot_list_2_"#_list"_2_"#_name
)
/**
* ll_entry_declare_list() - Declare a list of link-generated array entries
/**
* ll_entry_declare_list() - Declare a list of link-generated array entries
@@
-92,8
+92,8
@@
*/
#define ll_entry_declare_list(_type, _name, _list) \
_type _u_boot_list_2_##_list##_2_##_name[] __aligned(4) \
*/
#define ll_entry_declare_list(_type, _name, _list) \
_type _u_boot_list_2_##_list##_2_##_name[] __aligned(4) \
- __attribute__((unused
,
\
-
section(".u_boot_list_2_"#_list"_2_"#_name))
)
+ __attribute__((unused
))
\
+
__section("__u_boot_list_2_"#_list"_2_"#_name
)
/*
* We need a 0-byte-size type for iterator symbols, and the compiler
/*
* We need a 0-byte-size type for iterator symbols, and the compiler
@@
-110,7
+110,7
@@
* @_list: Name of the list in which this entry is placed
*
* This function returns ``(_type *)`` pointer to the very first entry of a
* @_list: Name of the list in which this entry is placed
*
* This function returns ``(_type *)`` pointer to the very first entry of a
- * linker-generated array placed into subsection of
.
u_boot_list section
+ * linker-generated array placed into subsection of
__
u_boot_list section
* specified by _list argument.
*
* Since this macro defines an array start symbol, its leftmost index
* specified by _list argument.
*
* Since this macro defines an array start symbol, its leftmost index
@@
-125,8
+125,8
@@
#define ll_entry_start(_type, _list) \
({ \
static char start[0] __aligned(CONFIG_LINKER_LIST_ALIGN) \
#define ll_entry_start(_type, _list) \
({ \
static char start[0] __aligned(CONFIG_LINKER_LIST_ALIGN) \
- __attribute__((unused
,
\
-
section(".u_boot_list_2_"#_list"_1")));
\
+ __attribute__((unused
))
\
+
__section("__u_boot_list_2_"#_list"_1");
\
(_type *)&start; \
})
(_type *)&start; \
})
@@
-137,7
+137,7
@@
* (with underscores instead of dots)
*
* This function returns ``(_type *)`` pointer after the very last entry of
* (with underscores instead of dots)
*
* This function returns ``(_type *)`` pointer after the very last entry of
- * a linker-generated array placed into subsection of
.
u_boot_list
+ * a linker-generated array placed into subsection of
__
u_boot_list
* section specified by _list argument.
*
* Since this macro defines an array end symbol, its leftmost index
* section specified by _list argument.
*
* Since this macro defines an array end symbol, its leftmost index
@@
-151,8
+151,8
@@
*/
#define ll_entry_end(_type, _list) \
({ \
*/
#define ll_entry_end(_type, _list) \
({ \
- static char end[0] __aligned(4) __attribute__((unused
,
\
-
section(".u_boot_list_2_"#_list"_3")));
\
+ static char end[0] __aligned(4) __attribute__((unused
))
\
+
__section("__u_boot_list_2_"#_list"_3");
\
(_type *)&end; \
})
/**
(_type *)&end; \
})
/**
@@
-161,7
+161,7
@@
* @_list: Name of the list of which the number of elements is computed
*
* This function returns the number of elements of a linker-generated array
* @_list: Name of the list of which the number of elements is computed
*
* This function returns the number of elements of a linker-generated array
- * placed into subsection of
.
u_boot_list section specified by _list
+ * placed into subsection of
__
u_boot_list section specified by _list
* argument. The result is of an unsigned int type.
*
* Example:
* argument. The result is of an unsigned int type.
*
* Example:
@@
-219,6
+219,10
@@
*
* This is like ll_entry_get(), but without the extra code, so it is suitable
* for putting into data structures.
*
* This is like ll_entry_get(), but without the extra code, so it is suitable
* for putting into data structures.
+ *
+ * @_type: C type of the list entry, e.g. 'struct foo'
+ * @_name: name of the entry
+ * @_list: name of the list
*/
#define ll_entry_ref(_type, _name, _list) \
((_type *)&_u_boot_list_2_##_list##_2_##_name)
*/
#define ll_entry_ref(_type, _name, _list) \
((_type *)&_u_boot_list_2_##_list##_2_##_name)
@@
-241,8
+245,8
@@
*/
#define ll_start(_type) \
({ \
*/
#define ll_start(_type) \
({ \
- static char start[0] __aligned(4) __attribute__((unused
,
\
-
section(".u_boot_list_1")));
\
+ static char start[0] __aligned(4) __attribute__((unused
))
\
+
__section("__u_boot_list_1");
\
(_type *)&start; \
})
(_type *)&start; \
})
@@
-264,8
+268,8
@@
*/
#define ll_end(_type) \
({ \
*/
#define ll_end(_type) \
({ \
- static char end[0] __aligned(4) __attribute__((unused
,
\
-
section(".u_boot_list_3")));
\
+ static char end[0] __aligned(4) __attribute__((unused
))
\
+
__section("__u_boot_list_3");
\
(_type *)&end; \
})
(_type *)&end; \
})