diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-04 13:56:41 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-02-06 15:19:35 +0100 |
commit | 8ecbc3826edfbfebabf5b9b75243df8b04421073 (patch) | |
tree | c2d172bad057023e18b2d53ded98eef69593e145 /testsuites | |
parent | 1d43a976a83f1b815ec07ce00e3db31fbd36aac4 (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.c | 2 |
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); } |