From: kettenis Date: Fri, 18 Jun 2021 21:05:16 +0000 (+0000) Subject: Need to enable interrupts while processing supervisor traps as well. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=89f527d35ac78eebecbbf333eb629b4b6fe57f61;p=openbsd Need to enable interrupts while processing supervisor traps as well. yikes deraadt@, ok mlarkin@ --- diff --git a/sys/arch/riscv64/riscv64/trap.c b/sys/arch/riscv64/riscv64/trap.c index 3b57620f878..516a9fa767a 100644 --- a/sys/arch/riscv64/riscv64/trap.c +++ b/sys/arch/riscv64/riscv64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.13 2021/05/20 04:22:33 drahn Exp $ */ +/* $OpenBSD: trap.c,v 1.14 2021/06/18 21:05:16 kettenis Exp $ */ /* * Copyright (c) 2020 Shivam Waghela @@ -77,6 +77,8 @@ do_trap_supervisor(struct trapframe *frame) return; } + intr_enable(); + exception = (frame->tf_scause & EXCP_MASK); switch (exception) { case EXCP_FAULT_LOAD: