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 /cpukit/include/rtems/config.h | |
parent | config: CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY (diff) | |
download | rtems-8ecbc3826edfbfebabf5b9b75243df8b04421073.tar.bz2 |
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 '')
-rw-r--r-- | cpukit/include/rtems/config.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/cpukit/include/rtems/config.h b/cpukit/include/rtems/config.h index 15e944dd2f..fac5c6e009 100644 --- a/cpukit/include/rtems/config.h +++ b/cpukit/include/rtems/config.h @@ -29,6 +29,7 @@ #include <rtems/score/object.h> #include <rtems/score/isr.h> +#include <rtems/score/memory.h> #include <rtems/score/userextdata.h> #include <rtems/score/watchdogticks.h> #include <rtems/rtems/config.h> @@ -148,14 +149,6 @@ typedef struct { */ rtems_stack_free_hook stack_free_hook; - /** - * If this element is TRUE, then RTEMS will zero the Executive Workspace. - * When this element is FALSE, it is assumed that the BSP or invoking - * environment has ensured that memory was cleared before RTEMS was - * invoked. - */ - bool do_zero_of_workspace; - /** * @brief Specifies if a unified work area is used or not. * @@ -241,7 +234,7 @@ uint32_t rtems_configuration_get_maximum_extensions( void ); * RTEMS is responsible for zeroing the Executive Workspace. */ #define rtems_configuration_get_do_zero_of_workspace() \ - (Configuration.do_zero_of_workspace) + _Memory_Zero_before_use #define rtems_configuration_get_number_of_initial_extensions() \ ((uint32_t) _User_extensions_Initial_count) |