mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-11-19 18:21:41 +00:00
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>
This commit is contained in:
1 parent
18ec89e46e
commit
74fd2e5bb2
6 files changed
+17
-10
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user