diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-06-26 10:00:10 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2018-06-26 10:00:10 +0000 |
commit | 6a1b5d23b91bcd5c1158064247a61e45bf467695 (patch) | |
tree | a069afcf0c9ee63faeff0c096721fec1a849f323 | |
parent | d00c11bad092042bae1bf9afadd7297fa69f5b08 (diff) |
Make ast() call refreshcreds(). Tweak this code to be similar to the amd64.
ok phessler@, guenther@
-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 */ |