From 6a1b5d23b91bcd5c1158064247a61e45bf467695 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 26 Jun 2018 10:00:10 +0000 Subject: Make ast() call refreshcreds(). Tweak this code to be similar to the amd64. ok phessler@, guenther@ --- sys/arch/arm/arm/ast.c | 18 +++--------------- 1 file 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 */ -- cgit v1.2.3