1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/fe310: Remove software IRQ handling

This commit is contained in:
Koen Zandberg 2021-01-11 13:20:35 +01:00
parent 1b2adb4821
commit 5a203413a1
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -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 */