Reduce RTEMS stack sizes.

Use new RTEMS 'unified memory pools'.
This commit is contained in:
W. Eric Norum
2009-01-23 20:21:41 +00:00
parent 0cabf024d7
commit deae06a694
9 changed files with 15 additions and 13 deletions

View File

@@ -5,8 +5,8 @@
# Where to find RTEMS
#
RTEMS_BASE=/usr/local/rtems/rtems-4.9
RTEMS_VERSION=4.9
RTEMS_BASE=/usr/local/rtems/rtems-4.10
RTEMS_VERSION=4.10
# If you're using neither BOOTP/DHCP nor FLASH to pick up your IOC
@@ -18,4 +18,4 @@ RTEMS_VERSION=4.9
#
# Specify your desired command-line-input library
#
COMMANDLINE_LIBRARY = EPICS
COMMANDLINE_LIBRARY = READLINE

View File

@@ -6,4 +6,4 @@
# Site override definitions for darwin-ppc host builds
#-------------------------------------------------------
CROSS_COMPILER_TARGET_ARCHS = # RTEMS-uC5282 RTEMS-mvme5500 RTEMS-mvme2100
CROSS_COMPILER_TARGET_ARCHS = # RTEMS-uC5282 # RTEMS-mvme5500 RTEMS-mvme2100

View File

@@ -10,3 +10,4 @@
# Need this to get OS X readline rather than Fink (PPC-only) readline
#
OP_SYS_LDFLAGS += -L/usr/lib
OP_SYS_CFLAGS += -g

View File

@@ -6,4 +6,4 @@
# Site override definitions for darwin-ppc host builds
#-------------------------------------------------------
CROSS_COMPILER_TARGET_ARCHS = # RTEMS-uC5282 # RTEMS-mvme5500 RTEMS-mvme2100
CROSS_COMPILER_TARGET_ARCHS = RTEMS-uC5282 RTEMS-mvme3100 # RTEMS-mvme167 # RTEMS-beatnik RTEMS-mvme2100

View File

@@ -9,4 +9,4 @@
# JBA test override values
#CROSS_COMPILER_TARGET_ARCHS = vxWorks-68040 solaris-sparc
#CROSS_COMPILER_TARGET_ARCHS = vxWorks-68040
#CROSS_COMPILER_TARGET_ARCHS = RTEMS-mvme2100 RTEMS-pc386 # RTEMS-mvme5500 RTEMS-mvme167
CROSS_COMPILER_TARGET_ARCHS = linux-xscale_be # RTEMS-uC5282 RTEMS-mvme3100 # RTEMS-pc386 # RTEMS-mvme5500 RTEMS-mvme167

View File

@@ -5,3 +5,4 @@
# Site specific definitions for linux-x86 host - linux-x86 target builds
#-------------------------------------------------------
USE_POSIX_THREAD_PRIORITY_SCHEDULING = YES

View File

@@ -7,4 +7,4 @@
#INSTALL_LOCATION = /home/phoebus/JBA/testBaseNew
#CROSS_COMPILER_TARGET_ARCHS += vxWorks-ppc604 vxWorks-ppc603 vxWorks-68040
CROSS_COMPILER_TARGET_ARCHS += vxWorks-ppc604 vxWorks-ppc603 vxWorks-68040 vxWorks-ppc604_long

View File

@@ -20,16 +20,16 @@
***********************************************************************
*/
#define CONFIGURE_UNIFIED_WORK_AREAS
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
#define CONFIGURE_EXECUTIVE_RAM_SIZE (2000*1024)
#define CONFIGURE_MAXIMUM_TASKS rtems_resource_unlimited(30)
#define CONFIGURE_MAXIMUM_SEMAPHORES rtems_resource_unlimited(500)
#define CONFIGURE_MAXIMUM_TIMERS rtems_resource_unlimited(20)
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES rtems_resource_unlimited(5)
#define CONFIGURE_MAXIMUM_USER_EXTENSIONS 1
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 100
#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 150
#define CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
#define CONFIGURE_MAXIMUM_DRIVERS 8

View File

@@ -126,11 +126,11 @@ epicsShareFunc epicsThreadBooleanStatus epicsShareAPI epicsThreadHighestPriority
unsigned int
epicsThreadGetStackSize (epicsThreadStackSizeClass size)
{
unsigned int stackSize = 16000;
unsigned int stackSize = 11000;
switch(size) {
case epicsThreadStackSmall: stackSize = 8000; break;
case epicsThreadStackMedium: stackSize = 12000; break;
case epicsThreadStackBig: break;
case epicsThreadStackSmall: stackSize = 5000; break;
case epicsThreadStackMedium: stackSize = 8000; break;
case epicsThreadStackBig: break;
default:
errlogPrintf("epicsThreadGetStackSize illegal argument");
break;