From bb20519b0afbc8116db9bdf097ee1783a48132a9 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 24 Sep 2020 20:22:51 +0000 Subject: mi_ast() should not use the old cpu, but the cpu (after potential sleep in refreshcreds() ok kettenis --- sys/arch/i386/i386/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/i386') diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index e3a5c7e5264..74359a00f3d 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.148 2020/09/24 17:54:29 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.149 2020/09/24 20:21:50 deraadt Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ /*- @@ -476,7 +476,7 @@ ast(struct trapframe *frame) p->p_md.md_regs = frame; refreshcreds(p); uvmexp.softs++; - mi_ast(p, want_resched); + mi_ast(p, curcpu()->ci_want_resched); userret(p); } -- cgit v1.2.3