summaryrefslogtreecommitdiffstats
path: root/c/src/exec/sapi/include/confdefs.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-19 22:54:35 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-19 22:54:35 +0000
commitb3dcd9a2711c23f69fdb0fde5c97de4efc39a2c2 (patch)
treed0fbc2c30945583c438f860843e3f3ac0d06ff03 /c/src/exec/sapi/include/confdefs.h
parentUpdated so test tools are installed even when --disable-tests is (diff)
downloadrtems-b3dcd9a2711c23f69fdb0fde5c97de4efc39a2c2.tar.bz2
Accounted for fixed system overhead.
Diffstat (limited to 'c/src/exec/sapi/include/confdefs.h')
-rw-r--r--c/src/exec/sapi/include/confdefs.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/c/src/exec/sapi/include/confdefs.h b/c/src/exec/sapi/include/confdefs.h
index 168ed3b45d..78755c95f8 100644
--- a/c/src/exec/sapi/include/confdefs.h
+++ b/c/src/exec/sapi/include/confdefs.h
@@ -349,7 +349,7 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = {
( sizeof(Objects_Control *) + sizeof(rtems_name *) + sizeof(rtems_name) )
#define CONFIGURE_MEMORY_FOR_TASKS(_tasks) \
- ((_tasks) * \
+ (((_tasks) + 1 ) * \
((sizeof(Thread_Control) + CONTEXT_FP_SIZE + \
STACK_MINIMUM_SIZE + sizeof( RTEMS_API_Control ) + \
CONFIGURE_OBJECT_TABLE_STUFF)) \
@@ -401,7 +401,8 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = {
#define CONFIGURE_MEMORY_FOR_MP \
( CONFIGURE_MEMORY_FOR_PROXIES(CONFIGURE_MP_MAXIMUM_PROXIES) + \
- CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) \
+ CONFIGURE_MEMORY_FOR_GLOBAL_OBJECTS(CONFIGURE_MP_MAXIMUM_GLOBAL_OBJECTS) + \
+ CONFIGURE_MEMORY_FOR_TASKS(1)
)
#endif /* CONFIGURE_HAS_OWN_MULTIPROCESING_TABLE */
@@ -415,6 +416,12 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = {
#define CONFIGURE_MEMORY_OVERHEAD 0
#endif
+#define CONFIGURE_MEMORY_FOR_SYSTEM_OVEREHAD \
+ ( CONFIGURE_MEMORY_FOR_TASKS(1) + /* IDLE */ \
+ (256 * 12) + /* Ready chains */ \
+ 256 /* name/ptr table overhead */ \
+ )
+
#define CONFIGURE_EXECUTIVE_RAM_SIZE \
(( CONFIGURE_MEMORY_FOR_TASKS(CONFIGURE_MAXIMUM_TASKS) + \
CONFIGURE_MEMORY_FOR_TIMERS(CONFIGURE_MAXIMUM_TIMERS) + \
@@ -427,6 +434,7 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = {
CONFIGURE_MEMORY_FOR_USER_EXTENSIONS(CONFIGURE_MAXIMUM_USER_EXTENSIONS) + \
CONFIGURE_MEMORY_FOR_DEVICES(CONFIGURE_MAXIMUM_DEVICES) + \
CONFIGURE_MEMORY_FOR_MP + \
+ CONFIGURE_MEMORY_FOR_SYSTEM_OVEREHAD + \
(((CONFIGURE_MEMORY_OVERHEAD)+1) * 1024) \
) & 0xfffffc00)
#endif