diff options
-rw-r--r-- | sys/arch/arm/arm/ast.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/arch/arm/arm/ast.c b/sys/arch/arm/arm/ast.c index cd2968a92c9..9d43211a4af 100644 --- a/sys/arch/arm/arm/ast.c +++ b/sys/arch/arm/arm/ast.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ast.c,v 1.15 2018/06/22 15:20:37 kettenis Exp $ */ +/* $OpenBSD: ast.c,v 1.16 2018/06/26 10:00:09 kettenis Exp $ */ /* $NetBSD: ast.c,v 1.6 2003/10/31 16:44:34 cl Exp $ */ /* @@ -79,22 +79,10 @@ ast(struct trapframe *tf) { struct proc *p = curproc; - /* Interrupts were restored by exception_exit. */ - - p->p_addr->u_pcb.pcb_tf = tf; - uvmexp.traps++; - -#ifdef DEBUG - if (p == NULL) - panic("ast: no curproc!"); - if (&p->p_addr->u_pcb == 0) - panic("ast: no pcb!"); -#endif - + p->p_addr->u_pcb.pcb_tf = tf; + refreshcreds(p); uvmexp.softs++; mi_ast(p, want_resched); userret(p); } - -/* End of ast.c */ |