config: Place init task storage area in .rtemsstack

This avoids a superfluous zero initialization of the task storage area.  This
reduces the system initialization time.
This commit is contained in:
Sebastian Huber
2022-11-09 16:54:02 +01:00
parent 080dc5d873
commit 0f9231002c
3 changed files with 14 additions and 13 deletions
+6 -6
View File
@@ -191,15 +191,15 @@ SECTIONS
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstackidle (NOLOAD) : {
*(SORT(.rtemsstack.idle*))
} > ram
_WorkAreaBase = . ;
.rtemsstackinterrupt (NOLOAD) : {
*(.rtemsstack.interrupt)
} > onchip_ram
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
} > onchip_ram
} > ram
_WorkAreaBase = . ;
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
+6 -6
View File
@@ -202,15 +202,15 @@ SECTIONS
*(SORT_BY_NAME (SORT_BY_ALIGNMENT (.noinit*)))
} > ram
.rtemsstackidle (NOLOAD) : {
*(SORT(.rtemsstack.idle*))
} > ram
_WorkAreaBase = . ;
.rtemsstackinterrupt (NOLOAD) : {
*(.rtemsstack.interrupt)
} > onchip_ram
.rtemsstack (NOLOAD) : {
*(SORT(.rtemsstack.*))
} > onchip_ram
} > ram
_WorkAreaBase = . ;
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
+2 -1
View File
@@ -122,8 +122,9 @@ RTEMS_STATIC_ASSERT(
CONFIGURE_INIT_TASK_CONSTRUCT_STORAGE_SIZE_IS_TOO_SMALL
);
static RTEMS_SECTION( ".rtemsstack.userinit" )
RTEMS_ALIGNED( RTEMS_TASK_STORAGE_ALIGNMENT )
static char _RTEMS_tasks_User_task_storage[ CONFIGURE_INIT_TASK_CONSTRUCT_STORAGE_SIZE ];
char _RTEMS_tasks_User_task_storage[ CONFIGURE_INIT_TASK_CONSTRUCT_STORAGE_SIZE ];
const RTEMS_tasks_User_task_config _RTEMS_tasks_User_task_config = {
{