summaryrefslogtreecommitdiffstats
path: root/c/src/exec/sapi/include/confdefs.h
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-04 15:35:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-02-04 15:35:26 +0000
commit0312defbebd2d9a98dd1f5e0d3dbb915d00fc9fb (patch)
tree291743ac6db86cf87b9c0c62c5bbea01e24e766f /c/src/exec/sapi/include/confdefs.h
parentNew autoconf feature from Ralf Corsepius: (diff)
downloadrtems-0312defbebd2d9a98dd1f5e0d3dbb915d00fc9fb.tar.bz2
Patch from Ralf Corsepius to reduce the amount of memory consumed by
the workspace by default.
Diffstat (limited to 'c/src/exec/sapi/include/confdefs.h')
-rw-r--r--c/src/exec/sapi/include/confdefs.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/c/src/exec/sapi/include/confdefs.h b/c/src/exec/sapi/include/confdefs.h
index 300b83d3b5..02bd96cc4c 100644
--- a/c/src/exec/sapi/include/confdefs.h
+++ b/c/src/exec/sapi/include/confdefs.h
@@ -411,6 +411,10 @@ posix_initialization_threads_table POSIX_Initialization_threads[] = {
#define CONFIGURE_MEMORY_FOR_MP 0
#endif
+#ifndef CONFIGURE_MEMORY_OVERHEAD
+#define CONFIGURE_MEMORY_OVERHEAD 0
+#endif
+
#define CONFIGURE_EXECUTIVE_RAM_SIZE \
(( CONFIGURE_MEMORY_FOR_TASKS(CONFIGURE_MAXIMUM_TASKS) + \
CONFIGURE_MEMORY_FOR_TIMERS(CONFIGURE_MAXIMUM_TIMERS) + \
@@ -423,8 +427,8 @@ 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 + \
- (96*1024) \
-) & 0xffff8000)
+ (((CONFIGURE_MEMORY_OVERHEAD)+1) * 1024) \
+) & 0xfffffc00)
#endif
#ifdef CONFIGURE_GNAT_RTEMS