diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/nds32/irq_chip.h | 5 | ||||
-rw-r--r-- | core/nds32/task.c | 2 | ||||
-rw-r--r-- | core/riscv-rv32i/irq_chip.h | 5 | ||||
-rw-r--r-- | core/riscv-rv32i/task.c | 2 |
4 files changed, 2 insertions, 12 deletions
diff --git a/core/nds32/irq_chip.h b/core/nds32/irq_chip.h index 58cc138a45..8c9b04f395 100644 --- a/core/nds32/irq_chip.h +++ b/core/nds32/irq_chip.h @@ -52,11 +52,6 @@ int chip_trigger_irq(int irq); void chip_init_irqs(void); /** - * Return interrupt number of software interrupt. - */ -int get_sw_int(void); - -/** * Return external interrupt number. */ int chip_get_ec_int(void); diff --git a/core/nds32/task.c b/core/nds32/task.c index b3f2a0c642..ea9e10e644 100644 --- a/core/nds32/task.c +++ b/core/nds32/task.c @@ -249,7 +249,7 @@ int task_start_called(void) return start_called; } -int get_sw_int(void) +static int get_sw_int(void) { /* If this is a SW interrupt */ if (get_itype() & 8) diff --git a/core/riscv-rv32i/irq_chip.h b/core/riscv-rv32i/irq_chip.h index ec56ddbb5d..6841f1993a 100644 --- a/core/riscv-rv32i/irq_chip.h +++ b/core/riscv-rv32i/irq_chip.h @@ -52,11 +52,6 @@ int chip_trigger_irq(int irq); void chip_init_irqs(void); /** - * Return interrupt number of software interrupt. - */ -int get_sw_int(void); - -/** * Return external interrupt number. */ int chip_get_ec_int(void); diff --git a/core/riscv-rv32i/task.c b/core/riscv-rv32i/task.c index 171cd221fe..49aa02f4db 100644 --- a/core/riscv-rv32i/task.c +++ b/core/riscv-rv32i/task.c @@ -221,7 +221,7 @@ int task_start_called(void) return start_called; } -int __ram_code get_sw_int(void) +static int __ram_code get_sw_int(void) { /* If this is a SW interrupt */ if (get_mcause() == 11) |