[rtems commit] arm: Fix _ARMV4_Exception_interrupt

Sebastian Huber sebh at rtems.org
Wed Nov 23 11:53:02 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Nov 23 10:15:07 2016 +0100

arm: Fix _ARMV4_Exception_interrupt

Use the right register to determine if a thread dispatch is allowed and
necessary.

Update #2751.

---

 cpukit/score/cpu/arm/arm_exc_interrupt.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpukit/score/cpu/arm/arm_exc_interrupt.S b/cpukit/score/cpu/arm/arm_exc_interrupt.S
index 355817e..5f3433d 100644
--- a/cpukit/score/cpu/arm/arm_exc_interrupt.S
+++ b/cpukit/score/cpu/arm/arm_exc_interrupt.S
@@ -157,7 +157,7 @@ _ARMV4_Exception_interrupt:
 	 * Check thread dispatch necessary, ISR dispatch disable and thread
 	 * dispatch disable level.
 	 */
-	cmp	r0, #0
+	cmp	r1, #0
 	bne	.Lthread_dispatch_done
 
 	/* Thread dispatch */



More information about the vc mailing list