Slight tweak to AST handling logic -- on return from ast_handler(),
IRQs are enabled, so we have to disable them again before checking astpending.
This commit is contained in:
parent
5d2a72968c
commit
a7297d1928
|
@ -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 @@ pull_trapframe:
|
|||
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 @@ _C_LABEL(intrcnt):
|
|||
.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 $")
|
||||
|
|
Loading…
Reference in New Issue