diff options
author | Anup Patel <anup.patel@wdc.com> | 2019-01-22 12:03:41 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2019-01-23 06:09:26 +0300 |
commit | 74fd2e5bb217278fcb2c0020038ea5f19bd5d22f (patch) | |
tree | 8f1c27d00aaf3c017d3f970ca81e21770341a0cb /platform/sifive/fu540 | |
parent | 18ec89e46e3cf8011b30deded6ea8d77720bdb3c (diff) | |
download | opensbi-74fd2e5bb217278fcb2c0020038ea5f19bd5d22f.tar.xz |
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/sifive/fu540')
-rw-r--r-- | platform/sifive/fu540/platform.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c index c13be64..c9bdf41 100644 --- a/platform/sifive/fu540/platform.c +++ b/platform/sifive/fu540/platform.c @@ -11,6 +11,7 @@ #include <fdt.h> #include <sbi/riscv_encoding.h> #include <sbi/sbi_const.h> +#include <sbi/sbi_hart.h> #include <sbi/sbi_console.h> #include <sbi/sbi_platform.h> #include <sbi/riscv_io.h> @@ -124,9 +125,10 @@ static int fu540_console_init(void) peri_in_freq, FU540_UART_BAUDRATE); } -static int fu540_irqchip_init(u32 hartid, bool cold_boot) +static int fu540_irqchip_init(bool cold_boot) { int rc; + u32 hartid = sbi_current_hartid(); if (cold_boot) { rc = plic_cold_irqchip_init(FU540_PLIC_ADDR, |