From 18e2fbe70dea41ab5948d80cc7eb0acb8a5b693c Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 7 Jun 2013 11:50:37 +0200 Subject: smp: Fix PowerPC context switch --- c/src/lib/libcpu/powerpc/new-exceptions/cpu_asm.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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". -- cgit v1.2.3