mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 20:33:51 +08:00
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:
@@ -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) }
|
||||
|
||||
@@ -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) }
|
||||
|
||||
@@ -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 = {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user