summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-20 07:57:08 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-21 07:19:29 +0200
commit56e61e24bd8cada5b25f6d4fdf433eed84f25204 (patch)
treec7eadd8eb5af389c61aa730251cad8392d6290b9 /cpukit
parentclang: Keep -qrtems and -B for compilers without -specs support (diff)
downloadrtems-56e61e24bd8cada5b25f6d4fdf433eed84f25204.tar.bz2
Remove INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL
The configured interrupt stack size (CONFIGURE_INTERRUPT_STACK_SIZE) is checked against the minimum task stack size. The minium tasks task stack size is also a configuration option (CONFIGURE_MINIMUM_TASK_STACK_SIZE). So, this check does not really help in case of configuration errors. In addition, the interrupt stack is also re-used as the initialization stack in most BSPs. It is probably better to use a stack checker to detect problems. Update #3459.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/include/rtems/score/interr.h2
-rw-r--r--cpukit/score/src/isr.c4
2 files changed, 1 insertions, 5 deletions
diff --git a/cpukit/include/rtems/score/interr.h b/cpukit/include/rtems/score/interr.h
index f09072d5fb..0c734e855f 100644
--- a/cpukit/include/rtems/score/interr.h
+++ b/cpukit/include/rtems/score/interr.h
@@ -158,7 +158,7 @@ typedef enum {
/* INTERNAL_ERROR_NO_CPU_TABLE = 1, */
INTERNAL_ERROR_TOO_LITTLE_WORKSPACE = 2,
INTERNAL_ERROR_WORKSPACE_ALLOCATION = 3,
- INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL = 4,
+ /* INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL = 4, */
INTERNAL_ERROR_THREAD_EXITTED = 5,
INTERNAL_ERROR_INCONSISTENT_MP_INFORMATION = 6,
INTERNAL_ERROR_INVALID_NODE = 7,
diff --git a/cpukit/score/src/isr.c b/cpukit/score/src/isr.c
index 3bda275b07..6a1b307f42 100644
--- a/cpukit/score/src/isr.c
+++ b/cpukit/score/src/isr.c
@@ -47,10 +47,6 @@ void _ISR_Handler_initialization( void )
#endif
stack_size = rtems_configuration_get_interrupt_stack_size();
-
- if ( !_Stack_Is_enough( stack_size ) )
- _Internal_error( INTERNAL_ERROR_INTERRUPT_STACK_TOO_SMALL );
-
cpu_max = rtems_configuration_get_maximum_processors();
stack_low = _Configuration_Interrupt_stack_area_begin;