From 8ecbc3826edfbfebabf5b9b75243df8b04421073 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 4 Feb 2020 13:56:41 +0100 Subject: 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. --- testsuites/sptests/sp54/init.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'testsuites') 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); } -- cgit v1.2.3