summaryrefslogtreecommitdiff
path: root/scripts/sysgen
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2015-10-08 10:21:57 -0400
committerAnas Nashif <anas.nashif@intel.com>2016-02-05 20:24:29 -0500
commitdb1399874160ef8671da09eed53f3c2d6056283d (patch)
tree92c3f42371d01568216ba6a8bed2668115901639 /scripts/sysgen
parent360682b5b5c00c92f1382c210218e1b90aa1f780 (diff)
toolchain: change section macro to support external c libraries
rename the sections macro to avoid conflicts with the same macro being defined in sys/cdefs.h of an external libc. Change-Id: I4d9e060eeff788ca4112c0ad3e98f0bea135f145 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Diffstat (limited to 'scripts/sysgen')
-rwxr-xr-xscripts/sysgen12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/sysgen b/scripts/sysgen
index 680d1e415..aec992326 100755
--- a/scripts/sysgen
+++ b/scripts/sysgen
@@ -356,25 +356,25 @@ def kernel_main_c_tasks():
kernel_main_c_out(
"struct k_task %s " % (obj_name)+
- "__section(_k_task_list, public, task) =\n" +
+ "__in_section(_k_task_list, public, task) =\n" +
" {NULL, NULL, %d, (ktask_t)&%s,\n" % (prio, obj_name) +
" 0x00000001, %#010x,\n" % (group_bitmask) +
" %s, %s, %d,\n" % (entry, stack, size) +
" (taskabortfunction)NULL, NULL};\n" +
"ktask_t _k_task_ptr_%s " % (name) +
- " __section(_k_task_ptr, public, task) = " +
+ " __in_section(_k_task_ptr, public, task) = " +
" (ktask_t)&%s;\n" % (obj_name))
kernel_main_c_out(
"struct k_task _k_task_idle " +
- "__section(_k_task_list, idle, task) =\n" +
+ "__in_section(_k_task_list, idle, task) =\n" +
" {NULL, NULL, %d, 0x00000000,\n" % (num_prios - 1) +
" 0x00000000, 0x00000000,\n" +
" (taskstartfunction)NULL, main_task_stack,\n"
" CONFIG_MAIN_STACK_SIZE,\n" +
" (taskabortfunction)NULL, NULL};\n" +
"ktask_t _k_task_ptr_idle " +
- " __section(_k_task_ptr, idle, task) = " +
+ " __in_section(_k_task_ptr, idle, task) = " +
" (ktask_t)&_k_task_idle;\n")
# currently scheduled task (idle task)
@@ -555,7 +555,7 @@ def kernel_main_c_pipes():
kernel_main_c_out("struct _k_pipe_struct _k_pipe_obj_%s = " % (name) +
" __K_PIPE_INITIALIZER(%d, %s);\n" % (size, buffer) +
"kpipe_t _k_pipe_ptr_%s " % (name) +
- " __section(_k_pipe_ptr, public, pipe) =\n" +
+ " __in_section(_k_pipe_ptr, public, pipe) =\n" +
" (kpipe_t)&_k_pipe_obj_%s;\n" % (name))
@@ -606,7 +606,7 @@ def kernel_main_c_maps():
" __K_MEM_MAP_INITIALIZER(%d, %d, __MAP_%s_buffer);\n" %
(blocks, block_size, map[0]) +
"kmemory_map_t _k_mem_map_ptr_%s " % (name) +
- " __section(_k_mem_map_ptr, public, mem_map) =\n" +
+ " __in_section(_k_mem_map_ptr, public, mem_map) =\n" +
" (kmemory_map_t)&_k_mem_map_obj_%s;\n" % (name))