summaryrefslogtreecommitdiffstats
path: root/cpukit/include/rtems/config.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-14 13:43:58 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-02-25 07:15:19 +0100
commitba7b2df7f00c92106cf70a55be629c19d2e8f2bf (patch)
tree45ec23439c20208118bab6e80b60f196137be887 /cpukit/include/rtems/config.h
parentconfig: Add _Thread_Idle_body (diff)
downloadrtems-ba7b2df7f00c92106cf70a55be629c19d2e8f2bf.tar.bz2
config: Add _Workspace_Size
Move the workspace size configuration constant out of the configuration table. Update #3875.
Diffstat (limited to '')
-rw-r--r--cpukit/include/rtems/config.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/cpukit/include/rtems/config.h b/cpukit/include/rtems/config.h
index 017b4ed476..0b5527c76d 100644
--- a/cpukit/include/rtems/config.h
+++ b/cpukit/include/rtems/config.h
@@ -34,6 +34,7 @@
#include <rtems/score/userextdata.h>
#include <rtems/score/threadidledata.h>
#include <rtems/score/watchdogticks.h>
+#include <rtems/score/wkspacedata.h>
#include <rtems/rtems/config.h>
#include <rtems/extension.h>
#if defined(RTEMS_MULTIPROCESSING)
@@ -83,11 +84,6 @@ typedef Stack_Allocator_free rtems_stack_free_hook;
*/
typedef struct {
/**
- * This field specifies the size in bytes of the RTEMS Workspace.
- */
- uintptr_t work_space_size;
-
- /**
* @brief Specifies if a unified work area is used or not.
*
* If this element is @a true, then the RTEMS Workspace and the C Program
@@ -132,7 +128,7 @@ extern const rtems_configuration_table Configuration;
uintptr_t rtems_configuration_get_stack_space_size( void );
#define rtems_configuration_get_work_space_size() \
- (Configuration.work_space_size + \
+ (_Workspace_Size + \
(rtems_configuration_get_stack_allocator_avoids_work_space() ? \
0 : rtems_configuration_get_stack_space_size()))