summaryrefslogtreecommitdiff
path: root/testsuites
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-04 13:56:41 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-06 15:19:35 +0100
commit8ecbc3826edfbfebabf5b9b75243df8b04421073 (patch)
treec2d172bad057023e18b2d53ded98eef69593e145 /testsuites
parent1d43a976a83f1b815ec07ce00e3db31fbd36aac4 (diff)
sysinit: Add RTEMS_SYSINIT_ZERO_MEMORY
Use a dedicate system initialization step to zero the memory used for the workspace and C program heap. This avoids dead code in case CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY is not configured.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/sp54/init.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/testsuites/sptests/sp54/init.c b/testsuites/sptests/sp54/init.c
index 7bedb46497..c9c8d6fe30 100644
--- a/testsuites/sptests/sp54/init.c
+++ b/testsuites/sptests/sp54/init.c
@@ -50,6 +50,8 @@ static void *Init( uintptr_t ignored )
);
fatal_directive_status( status, RTEMS_INVALID_NAME, "rtems_task_ident" );
+ rtems_test_assert( rtems_configuration_get_do_zero_of_workspace() );
+
TEST_END();
rtems_test_exit(0);
}