[rtems commit] powerpc: Fix interrupt thread dispatch
Sebastian Huber
sebh at rtems.org
Thu Mar 2 11:03:07 UTC 2017
Module: rtems
Branch: master
Commit: 09dab28da0e4e500c0d8719da56b1b35625072ec
Changeset: http://git.rtems.org/rtems/commit/?id=09dab28da0e4e500c0d8719da56b1b35625072ec
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Mar 2 11:54:58 2017 +0100
powerpc: Fix interrupt thread dispatch
Update #2751.
---
.../libcpu/powerpc/new-exceptions/bspsupport/ppc_exc_async_normal.S | 3 +--
1 file changed, 1 insertion(+), 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 3162370..f79687b 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)
More information about the vc
mailing list