summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorTzung-Bi Shih <tzungbi@chromium.org>2020-05-04 14:27:51 +0800
committerCommit Bot <commit-bot@chromium.org>2020-05-19 08:55:37 +0000
commit5d7adbc5d0138a3338c4d34afa61ba1cdde8365e (patch)
tree5330b850d963a2743b7060df4c726425a401a1c3 /core
parent57be4e6b00489ce571e8caf7f36b30d1a5f8c700 (diff)
downloadchrome-ec-5d7adbc5d0138a3338c4d34afa61ba1cdde8365e.tar.gz
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 <tzungbi@chromium.org> Change-Id: I9a5bbeec152780b54b4dd6ce07f2390633c64366 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2178699 Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/nds32/irq_chip.h5
-rw-r--r--core/nds32/task.c2
-rw-r--r--core/riscv-rv32i/irq_chip.h5
-rw-r--r--core/riscv-rv32i/task.c2
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)