From 11e8bc5f0fa2d9485908874dbfe9cd65c1aec477 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 29 Jun 2010 00:34:12 +0000 Subject: 2010-06-28 Joel Sherrill PR 1573/cpukit * configure.ac, posix/src/killinfo.c, posix/src/psignalclearprocesssignals.c, posix/src/psignalsetprocesssignals.c, posix/src/psignalunblockthread.c, posix/src/pthreadcreate.c, posix/src/pthreadkill.c, posix/src/pthreadsigmask.c, rtems/src/signalsend.c, rtems/src/taskmode.c, score/Makefile.am, score/preinstall.am, score/include/rtems/system.h, score/include/rtems/score/context.h, score/include/rtems/score/isr.h, score/include/rtems/score/thread.h, score/src/isr.c, score/src/isrthreaddispatch.c, score/src/thread.c, score/src/threaddispatch.c, score/src/threadloadenv.c: Add a per cpu data structure which contains the information required by RTEMS for each CPU core. This encapsulates information such as thread executing, heir, idle and dispatch needed. * score/include/rtems/score/percpu.h, score/src/percpu.c: New files. --- cpukit/score/src/isr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cpukit/score/src/isr.c') diff --git a/cpukit/score/src/isr.c b/cpukit/score/src/isr.c index 0c6956fb19..4925ee9117 100644 --- a/cpukit/score/src/isr.c +++ b/cpukit/score/src/isr.c @@ -34,8 +34,6 @@ void _ISR_Handler_initialization( void ) { - _ISR_Signals_to_thread_executing = false; - _ISR_Nest_level = 0; #if (CPU_SIMPLE_VECTORED_INTERRUPTS == TRUE) @@ -64,6 +62,9 @@ void _ISR_Handler_initialization( void ) Configuration.interrupt_stack_size ); + _CPU_Interrupt_stack_high = (void *) + ((uintptr_t) _CPU_Interrupt_stack_high & ~CPU_STACK_ALIGNMENT); + /* Interrupt stack might have to be aligned and/or setup * in a specific way. */ -- cgit v1.2.3