summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-02 11:54:58 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-03-02 12:02:49 +0100
commit09dab28da0e4e500c0d8719da56b1b35625072ec (patch)
treedb4adf66bf20c3433544a6e497d254d8303054e5
parent1f618ab00fc499ccb38af58a6cb185f643298fe1 (diff)
downloadrtems-09dab28da0e4e500c0d8719da56b1b35625072ec.tar.bz2
powerpc: Fix interrupt thread dispatch
Update #2751.
-rw-r--r--c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S
index 316237015e..f79687b387 100644
--- a/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S
+++ b/c/src/lib/libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S
@@ -346,9 +346,8 @@ ppc_exc_wrap_async_normal:
/* Disable interrupts */
wrteei 0
-#ifdef RTEMS_SMP
+ /* SELF_CPU_REGISTER is volatile, we must set it again */
GET_SELF_CPU_CONTROL SELF_CPU_REGISTER
-#endif
/* Check if we have to do the thread dispatch again */
lbz SCRATCH_0_REGISTER, PER_CPU_DISPATCH_NEEDED(SELF_CPU_REGISTER)