From 5a203413a19052b63bad9befba83db0dd122b929 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Mon, 11 Jan 2021 13:20:35 +0100 Subject: [PATCH] cpu/fe310: Remove software IRQ handling --- cpu/fe310/irq_arch.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/cpu/fe310/irq_arch.c b/cpu/fe310/irq_arch.c index e6d89b528b..3dc283767d 100644 --- a/cpu/fe310/irq_arch.c +++ b/cpu/fe310/irq_arch.c @@ -61,8 +61,7 @@ void irq_init(void) plic_init(); } - /* Enable SW and external interrupts */ - set_csr(mie, MIP_MSIP); + /* Enable external interrupts */ set_csr(mie, MIP_MEIP); /* Set default state of mstatus */ @@ -82,12 +81,6 @@ void handle_trap(uint32_t mcause) if ((mcause & MCAUSE_INT) == MCAUSE_INT) { /* Cause is an interrupt - determine type */ switch (mcause & MCAUSE_CAUSE) { - case IRQ_M_SOFT: - /* Handle software interrupt - flag for context switch */ - sched_context_switch_request = 1; - CLINT_REG(0) = 0; - break; - #ifdef MODULE_PERIPH_TIMER case IRQ_M_TIMER: /* Handle timer interrupt */