From: kettenis Date: Thu, 13 May 2021 09:32:00 +0000 (+0000) Subject: Run handlers with interrupts enabled. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=28149d3d425e06122f5250a8c1c9c1213ec8eae8;p=openbsd Run handlers with interrupts enabled. ok jsg@ --- diff --git a/sys/arch/riscv64/dev/plic.c b/sys/arch/riscv64/dev/plic.c index 2bfede5792b..29985fbe781 100644 --- a/sys/arch/riscv64/dev/plic.c +++ b/sys/arch/riscv64/dev/plic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: plic.c,v 1.4 2021/05/12 01:20:52 jsg Exp $ */ +/* $OpenBSD: plic.c,v 1.5 2021/05/13 09:32:00 kettenis Exp $ */ /* * Copyright (c) 2020, Mars Li @@ -383,10 +383,9 @@ plic_irq_dispatch(uint32_t irq, void *frame) else arg = frame; -// comment for now, ?! -// enable_interrupts(); //XXX allow preemption? + intr_enable(); handled = ih->ih_func(arg); -// disable_interrupts(); + intr_disable(); if (handled) ih->ih_count.ec_count++;