[rtems commit] config: CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY

Sebastian Huber sebh at rtems.org
Thu Feb 6 14:22:13 UTC 2020


Module:    rtems
Branch:    master
Commit:    1d43a976a83f1b815ec07ce00e3db31fbd36aac4
Changeset: http://git.rtems.org/rtems/commit/?id=1d43a976a83f1b815ec07ce00e3db31fbd36aac4

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Feb  4 13:20:26 2020 +0100

config: CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY

Canonicalize CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY and use
defined/undefined instead of TRUE/FALSE.

Close #3862.

---

 cpukit/include/rtems/confdefs.h | 15 +++++----------
 testsuites/sptests/sp54/init.c  |  5 ++---
 2 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/cpukit/include/rtems/confdefs.h b/cpukit/include/rtems/confdefs.h
index 0a63dcc..7d0d3fb 100644
--- a/cpukit/include/rtems/confdefs.h
+++ b/cpukit/include/rtems/confdefs.h
@@ -1235,15 +1235,6 @@ extern rtems_initialization_tasks_table Initialization_tasks[];
 /**@{*/
 
 /**
- * Should the RTEMS Workspace and C Program Heap be cleared automatically
- * at system start up?
- */
-#ifndef CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY
-  #define CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY FALSE
-#endif
-/**@}*/ /* end of add to group Configuration */
-
-/**
  * @defgroup ConfigurationMalloc RTEMS Malloc configuration
  *
  * This module contains parameters related to configuration of the RTEMS
@@ -2787,7 +2778,11 @@ struct _reent *__getreent(void)
     CONFIGURE_TASK_STACK_ALLOCATOR_INIT,      /* stack allocator init */
     CONFIGURE_TASK_STACK_ALLOCATOR,           /* stack allocator */
     CONFIGURE_TASK_STACK_DEALLOCATOR,         /* stack deallocator */
-    CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY,   /* true to clear memory */
+    #ifdef CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY /* true to clear memory */
+      true,
+    #else
+      false,
+    #endif
     #ifdef CONFIGURE_UNIFIED_WORK_AREAS       /* true for unified work areas */
       true,
     #else
diff --git a/testsuites/sptests/sp54/init.c b/testsuites/sptests/sp54/init.c
index cf7f4db..7bedb46 100644
--- a/testsuites/sptests/sp54/init.c
+++ b/testsuites/sptests/sp54/init.c
@@ -82,10 +82,9 @@ rtems_initialization_tasks_table Initialization_tasks[1] =
 #define CONFIGURE_INIT_TASK_STACK_SIZE 0
 
 /*
- *  Ensure we test the case where memory is zero.  Not
- *  all BSPs will set this to TRUE by default.
+ *  Ensure we test the case where memory is zero.
  */
-#define CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY TRUE
+#define CONFIGURE_ZERO_WORKSPACE_AUTOMATICALLY
 
 #define CONFIGURE_INIT
 #include <rtems/confdefs.h>



More information about the vc mailing list