From 5d7adbc5d0138a3338c4d34afa61ba1cdde8365e Mon Sep 17 00:00:00 2001 From: Tzung-Bi Shih Date: Mon, 4 May 2020 14:27:51 +0800 Subject: core/riscv-rv32i: do not expose get_sw_int() Do not expose get_sw_int(). BRANCH=none BUG=b:151897847 TEST=1. make BOARD=asurada 2. flash_ec --board=asurada --image build/asurada/ec.bin 3. (EC console)> version Signed-off-by: Tzung-Bi Shih Change-Id: I9a5bbeec152780b54b4dd6ce07f2390633c64366 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2178699 Reviewed-by: Eric Yilun Lin --- core/nds32/irq_chip.h | 5 ----- core/nds32/task.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'core/nds32') 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 @@ -51,11 +51,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. */ 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) -- cgit v1.2.1