summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src/smp.c
diff options
context:
space:
mode:
authorJennifer Averett <Jennifer.Averett@OARcorp.com>2011-04-21 19:05:15 +0000
committerJennifer Averett <Jennifer.Averett@OARcorp.com>2011-04-21 19:05:15 +0000
commitd7c388321ad2f250cb35f01dc4c8dda7489c3416 (patch)
tree292c6c350e7f96ddb3cc0a910433ceb296c24db1 /cpukit/score/src/smp.c
parent2011-04-21 Jennifer Averett <Jennifer.Averett@OARcorp.com (diff)
downloadrtems-d7c388321ad2f250cb35f01dc4c8dda7489c3416.tar.bz2
2011-04-21 Jennifer Averett <Jennifer.Averett@OARcorp.com
PR 1777/cpukit * libcsupport/src/malloc_deferred.c, libcsupport/src/realloc.c, score/Makefile.am, score/cpu/lm32/irq.c, score/cpu/nios2/irq.c, score/include/rtems/score/coremutex.h, score/include/rtems/score/thread.h, score/inline/rtems/score/thread.inl, score/src/heapfree.c, score/src/pheapwalk.c, score/src/smp.c, score/src/threaddispatch.c: Consolidated access to _Thread_Dispatch_disable_level. * score/src/threaddisabledispatch.c, score/src/threadenabledispatch.c: New files.
Diffstat (limited to 'cpukit/score/src/smp.c')
-rw-r--r--cpukit/score/src/smp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/score/src/smp.c b/cpukit/score/src/smp.c
index 4a0c13947f..b9d6f9799a 100644
--- a/cpukit/score/src/smp.c
+++ b/cpukit/score/src/smp.c
@@ -37,7 +37,7 @@ void rtems_smp_run_first_task(int cpu)
* This is definitely a hack until we have SMP scheduling. Since there
* is only one executing and heir right now, we have to fake this out.
*/
- _Thread_Dispatch_disable_level = 1;
+ _Thread_Dispatch_set_disable_level(1);
_Thread_Executing = heir;
_CPU_Context_switch_to_first_task_smp( &heir->Registers );
}
@@ -103,7 +103,7 @@ void rtems_smp_process_interrupt(void)
if ( message & RTEMS_BSP_SMP_SHUTDOWN ) {
ISR_Level level;
- _Thread_Dispatch_disable_level = 0;
+ _Thread_Dispatch_set_disable_level(0);
_Per_CPU_Information[cpu].isr_nest_level = 0;
_Per_CPU_Information[cpu].state = RTEMS_BSP_SMP_CPU_SHUTDOWN;
_ISR_Disable( level );