Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm26/arm26 Slight tweak to AST handling logic -- o...



details:   https://anonhg.NetBSD.org/src/rev/9e84f2a14aba
branches:  trunk
changeset: 518510:9e84f2a14aba
user:      bjh21 <bjh21%NetBSD.org@localhost>
date:      Sat Dec 01 17:30:07 2001 +0000

description:
Slight tweak to AST handling logic -- on return from ast_handler(),
IRQs are enabled, so we have to disable them again before checking
astpending.

diffstat:

 sys/arch/arm26/arm26/locore.S |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 6d4672c646a9 -r 9e84f2a14aba sys/arch/arm26/arm26/locore.S
--- a/sys/arch/arm26/arm26/locore.S     Sat Dec 01 17:18:38 2001 +0000
+++ b/sys/arch/arm26/arm26/locore.S     Sat Dec 01 17:30:07 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.19 2001/08/26 12:20:59 bjh21 Exp $ */
+/* $NetBSD: locore.S,v 1.20 2001/12/01 17:30:07 bjh21 Exp $ */
 /*
  * Copyright (c) 1998, 1999, 2000 Ben Harris
  * Copyright (C) 1994-1997 Mark Brinicombe
@@ -199,11 +199,11 @@
        ldr     lr, [sp, #TF_R15]       /* Pull return address and PSR */
        tst     lr, #R15_MODE           /* Was trap in USR mode? */
        bne     3f                      /* If not, return */
+       ldr     r4, Lastpending
+1:
 #ifndef __APCS_26__
        teqp    r15, #(R15_IRQ_DISABLE | R15_MODE_SVC)
 #endif
-       ldr     r4, Lastpending
-1:
        ldr     r1, [r4]
        cmp     r1, #0                  /* AST pending? */
        beq     2f                      /* If not, return */
@@ -504,4 +504,4 @@
        .global _C_LABEL(eintrcnt)
 _C_LABEL(eintrcnt):
 
-RCSID("$NetBSD: locore.S,v 1.19 2001/08/26 12:20:59 bjh21 Exp $")
+RCSID("$NetBSD: locore.S,v 1.20 2001/12/01 17:30:07 bjh21 Exp $")



Home | Main Index | Thread Index | Old Index