diff options
Diffstat (limited to 'core/riscv-rv32i/task.c')
-rw-r--r-- | core/riscv-rv32i/task.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/core/riscv-rv32i/task.c b/core/riscv-rv32i/task.c index 443a924602..cf734d4078 100644 --- a/core/riscv-rv32i/task.c +++ b/core/riscv-rv32i/task.c @@ -225,14 +225,6 @@ int task_start_called(void) return start_called; } -static int __ram_code get_sw_int(void) -{ - /* If this is a SW interrupt */ - if (get_mcause() == 11) - return sw_int_num; - return 0; -} - /** * Scheduling system call * @@ -325,7 +317,7 @@ void __ram_code start_irq_handler(void) /* If this is a SW interrupt */ if (get_mcause() == 11) { - ec_int = get_sw_int(); + ec_int = sw_int_num; ec_int_group = 16; } else { /* Determine interrupt number */ |