[rtems commit] smp: Fix PowerPC context switch

Sebastian Huber sebh at rtems.org
Fri Jun 7 15:02:23 UTC 2013


Module:    rtems
Branch:    master
Commit:    18e2fbe70dea41ab5948d80cc7eb0acb8a5b693c
Changeset: http://git.rtems.org/rtems/commit/?id=18e2fbe70dea41ab5948d80cc7eb0acb8a5b693c

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Jun  7 11:50:37 2013 +0200

smp: Fix PowerPC context switch

---

 c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S |    2 +-
 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 04fb8b1..0a96c32 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".




More information about the vc mailing list