cpu/fe310: Remove software IRQ handling
This commit is contained in:
parent
1b2adb4821
commit
5a203413a1
@ -61,8 +61,7 @@ void irq_init(void)
|
|||||||
plic_init();
|
plic_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Enable SW and external interrupts */
|
/* Enable external interrupts */
|
||||||
set_csr(mie, MIP_MSIP);
|
|
||||||
set_csr(mie, MIP_MEIP);
|
set_csr(mie, MIP_MEIP);
|
||||||
|
|
||||||
/* Set default state of mstatus */
|
/* Set default state of mstatus */
|
||||||
@ -82,12 +81,6 @@ void handle_trap(uint32_t mcause)
|
|||||||
if ((mcause & MCAUSE_INT) == MCAUSE_INT) {
|
if ((mcause & MCAUSE_INT) == MCAUSE_INT) {
|
||||||
/* Cause is an interrupt - determine type */
|
/* Cause is an interrupt - determine type */
|
||||||
switch (mcause & MCAUSE_CAUSE) {
|
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
|
#ifdef MODULE_PERIPH_TIMER
|
||||||
case IRQ_M_TIMER:
|
case IRQ_M_TIMER:
|
||||||
/* Handle timer interrupt */
|
/* Handle timer interrupt */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user