diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-14 13:59:23 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-07-15 10:46:02 +0200 |
commit | 4b911a7516750ef1c43f9dc387e0206e1086623b (patch) | |
tree | d3c1d735196e714ec1531f21bed7507ad5c88b1e /testsuites/sptests | |
parent | bsps: Sort .noinit* sections (diff) | |
download | rtems-4b911a7516750ef1c43f9dc387e0206e1086623b.tar.bz2 |
score: Place object controls into .noinit sections
Place the statically allocated object control blocks, local tables, and thread
queue heads into the dedicated .noinit intput sections. The output section is
not zero initialized. Placing these elements into the .noinit section reduces
the system initialization time by decreasing the .bss section size.
It may improve the cache efficiency since the mostly read local tables are
placed in a contiguous memory area.
Update #4678.
Diffstat (limited to 'testsuites/sptests')
-rw-r--r-- | testsuites/sptests/sp01/init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuites/sptests/sp01/init.c b/testsuites/sptests/sp01/init.c index 2384430824..26d715b0ba 100644 --- a/testsuites/sptests/sp01/init.c +++ b/testsuites/sptests/sp01/init.c @@ -35,7 +35,8 @@ const char rtems_test_name[] = "SP 1"; -RTEMS_ALIGNED( RTEMS_TASK_STORAGE_ALIGNMENT ) static char Task_1_storage[ +static RTEMS_NOINIT RTEMS_ALIGNED( RTEMS_TASK_STORAGE_ALIGNMENT ) char +Task_1_storage[ RTEMS_TASK_STORAGE_SIZE( 2 * RTEMS_MINIMUM_STACK_SIZE, RTEMS_FLOATING_POINT ) ]; |