Index: ecos/packages/hal/arm/arch/current/src/vectors.S =================================================================== RCS file: /cvs/ecos/ecos/packages/hal/arm/arch/current/src/vectors.S,v retrieving revision 1.57 diff -u -5 -p -r1.57 vectors.S --- ecos/packages/hal/arm/arch/current/src/vectors.S 4 Feb 2007 00:16:42 -0000 1.57 +++ ecos/packages/hal/arm/arch/current/src/vectors.S 21 Feb 2007 18:06:24 -0000 @@ -1203,15 +1203,11 @@ __GDB_stack_base: .endr __GDB_stack: #endif .balign 16 __startup_stack_base: -#ifdef CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK - .rept 512 -#else - .rept CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE -#endif + .rept CYGNUM_HAL_COMMON_STARTUP_STACK_SIZE .byte 0 .endr .balign 16 __startup_stack: Index: ecos/packages/hal/common/current/cdl/interrupts.cdl =================================================================== RCS file: /cvs/ecos/ecos/packages/hal/common/current/cdl/interrupts.cdl,v retrieving revision 1.5 diff -u -5 -p -r1.5 interrupts.cdl --- ecos/packages/hal/common/current/cdl/interrupts.cdl 24 Jun 2003 04:01:10 -0000 1.5 +++ ecos/packages/hal/common/current/cdl/interrupts.cdl 21 Feb 2007 18:06:25 -0000 @@ -92,10 +92,24 @@ cdl_option CYGNUM_HAL_COMMON_INTERRUPTS_ in a configuration with no kernel this stack will also be the stack used to invoke the application, and must obviously be appropriately large in that case." } +cdl_option CYGNUM_HAL_COMMON_STARTUP_STACK_SIZE { + display "Startup stack size" + flavor data + default_value { CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK?512:CYGNUM_HAL_COMMON_INTERRUPTS_STACK_SIZE} + legal_values 128 to 1048576 + description " + This configuration option specifies the size in bytes of the + HAL startup stack. This is the stack used when the HAL calls + cyg_start(). The size of the startup stack is typically + smaller when interrupt stack switching has been enabled. + When interrupt stack switching is disabled, the startup stack + is also used during system initialization." +} + cdl_option CYGSEM_HAL_COMMON_INTERRUPTS_ALLOW_NESTING { display "Allow nested interrupts" default_value 0 description " When an interrupt occurs the HAL interrupt handling code can