diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-07-01 10:48:28 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-07-04 13:17:19 +0200 |
commit | fbda4a8834c5c88c138466fb94c4004be7d72d66 (patch) | |
tree | da13bb222edf9c59b3923357e23fc6545c255f8a /cpukit/score/cpu/sparc/rtems/score/cpu.h | |
parent | arm: Use local label in _CPU_Context_restore() (diff) | |
download | rtems-fbda4a8834c5c88c138466fb94c4004be7d72d66.tar.bz2 |
score: PR2183: Fix context switch on SMP
Fix context switch on SMP for ARM, PowerPC and SPARC.
Atomically test and set the is executing indicator of the heir context
to ensure that at most one processor uses the heir context. Break the
busy wait loop also due to heir updates.
Diffstat (limited to 'cpukit/score/cpu/sparc/rtems/score/cpu.h')
-rw-r--r-- | cpukit/score/cpu/sparc/rtems/score/cpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/score/cpu/sparc/rtems/score/cpu.h b/cpukit/score/cpu/sparc/rtems/score/cpu.h index c01000584f..39b78258c1 100644 --- a/cpukit/score/cpu/sparc/rtems/score/cpu.h +++ b/cpukit/score/cpu/sparc/rtems/score/cpu.h @@ -475,7 +475,7 @@ typedef struct { uint32_t isr_dispatch_disable; #if defined(RTEMS_SMP) - volatile bool is_executing; + volatile uint32_t is_executing; #endif } Context_Control; |