summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-07 11:50:37 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-06-07 17:06:43 +0200
commit18e2fbe70dea41ab5948d80cc7eb0acb8a5b693c (patch)
treec974bb27e9706d813a63c98f12cfaee723c64b14
parent7cf2ec6f0d1e8ae5c8317d42c53505c27f722582 (diff)
downloadrtems-18e2fbe70dea41ab5948d80cc7eb0acb8a5b693c.tar.bz2
smp: Fix PowerPC context switch
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
index 04fb8b163c..0a96c32ef1 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S
@@ -267,7 +267,7 @@ PROC (_CPU_Context_switch):
mfmsr r5
mflr r6
mfcr r7
-#ifdef RTEMS_MULTIPROCESSING
+#if defined(RTEMS_MULTIPROCESSING) || defined(RTEMS_SMP)
/*
* We have to clear the reservation of the executing thread. See also
* Book E section 6.1.6.2 "Atomic Update Primitives".