diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-09-24 20:22:51 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2020-09-24 20:22:51 +0000 |
commit | bb20519b0afbc8116db9bdf097ee1783a48132a9 (patch) | |
tree | 73566f17d8904443a64de066059b3c701f01c888 /sys/arch/i386 | |
parent | c5137d30028239faa7f2467c3299be5658414b6d (diff) |
mi_ast() should not use the old cpu, but the cpu (after potential sleep
in refreshcreds()
ok kettenis
Diffstat (limited to 'sys/arch/i386')
-rw-r--r-- | sys/arch/i386/i386/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |