From 28149d3d425e06122f5250a8c1c9c1213ec8eae8 Mon Sep 17 00:00:00 2001 From: kettenis Date: Thu, 13 May 2021 09:32:00 +0000 Subject: [PATCH] Run handlers with interrupts enabled. ok jsg@ --- sys/arch/riscv64/dev/plic.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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++; -- 2.20.1