diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-22 14:33:41 +0530 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-23 08:39:26 +0530 |
commit | 74fd2e5bb217278fcb2c0020038ea5f19bd5d22f (patch) | |
tree | 8f1c27d00aaf3c017d3f970ca81e21770341a0cb /platform/kendryte | |
parent | 18ec89e46e3cf8011b30deded6ea8d77720bdb3c (diff) |
lib: Remove hartid parameter from IRQCHIP callbacks
The hartid parameter in IRQCHIP callbacks of sbi_platform
is not required because current hartid can be determined
using sbi_current_hartid() API.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Diffstat (limited to 'platform/kendryte')
-rw-r--r-- | platform/kendryte/k210/platform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/kendryte/k210/platform.c b/platform/kendryte/k210/platform.c index 4eb1d99..55e8d90 100644 --- a/platform/kendryte/k210/platform.c +++ b/platform/kendryte/k210/platform.c @@ -9,6 +9,7 @@ #include <sbi/riscv_encoding.h> #include <sbi/sbi_const.h> +#include <sbi/sbi_hart.h> #include <sbi/sbi_platform.h> #include <sbi/sbi_console.h> #include <plat/irqchip/plic.h> @@ -35,9 +36,10 @@ static char k210_console_getc(void) return uarths_getc(); } -static int k210_irqchip_init(u32 hartid, bool cold_boot) +static int k210_irqchip_init(bool cold_boot) { int rc; + u32 hartid = sbi_current_hartid(); if (cold_boot) { rc = plic_cold_irqchip_init(PLIC_BASE_ADDR, |