From 429978f437b518e284e7619964f1bb326322102c Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Thu, 29 Oct 2009 16:27:45 +0000 Subject: 2009-10-29 Till Straumann * score/src/isr.c: Check if CPU defined _CPU_Interrupt_stack_setup() macro hook for setting up the interrupt stack (alignment, reserving space etc.) after the framework allocates it. --- cpukit/score/src/isr.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cpukit/score/src/isr.c') diff --git a/cpukit/score/src/isr.c b/cpukit/score/src/isr.c index 2b498f4870..0c6956fb19 100644 --- a/cpukit/score/src/isr.c +++ b/cpukit/score/src/isr.c @@ -64,6 +64,13 @@ void _ISR_Handler_initialization( void ) Configuration.interrupt_stack_size ); + /* Interrupt stack might have to be aligned and/or setup + * in a specific way. + */ +#if defined(_CPU_Interrupt_stack_setup) + _CPU_Interrupt_stack_setup(_CPU_Interrupt_stack_low, _CPU_Interrupt_stack_high); +#endif + #endif #if ( CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE ) -- cgit v1.2.3