mirror of
https://github.com/Fishwaldo/opensbi.git
synced 2025-07-06 04:59:00 +00:00
lib: utils: Remove redundant parameters from PLIC init functions
The "target_hart" and "hart_count" parameters of PLIC cold and warm init functions are only used for sanity checks and not required in PLIC initialization. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
This commit is contained in:
parent
89ba63493c
commit
73d6ef3b29
10 changed files with 22 additions and 48 deletions
|
@ -71,13 +71,12 @@ static int platform_irqchip_init(bool cold_boot)
|
|||
/* Example if the generic PLIC driver is used */
|
||||
if (cold_boot) {
|
||||
ret = plic_cold_irqchip_init(PLATFORM_PLIC_ADDR,
|
||||
PLATFORM_PLIC_NUM_SOURCES,
|
||||
PLATFORM_HART_COUNT);
|
||||
PLATFORM_PLIC_NUM_SOURCES);
|
||||
if (ret)
|
||||
return ret;
|
||||
}
|
||||
|
||||
return plic_warm_irqchip_init(hartid, 2 * hartid, 2 * hartid + 1);
|
||||
return plic_warm_irqchip_init(2 * hartid, 2 * hartid + 1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue