diff options
author | Anup Patel <anup.patel@wdc.com> | 2020-05-12 07:44:43 +0300 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2020-05-23 08:06:26 +0300 |
commit | 73d6ef3b2933ccf0b3a8a0ba110bf53ad9720b51 (patch) | |
tree | baa3468336030b1680162ed4e31d3a3fa6d89179 /platform/sifive/fu540 | |
parent | 89ba63493c4ce98861144180e408d6db391fd1c3 (diff) | |
download | opensbi-73d6ef3b2933ccf0b3a8a0ba110bf53ad9720b51.tar.xz |
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>
Diffstat (limited to 'platform/sifive/fu540')
-rw-r--r-- | platform/sifive/fu540/platform.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/platform/sifive/fu540/platform.c b/platform/sifive/fu540/platform.c index aeb2f41..bef17f1 100644 --- a/platform/sifive/fu540/platform.c +++ b/platform/sifive/fu540/platform.c @@ -89,13 +89,12 @@ static int fu540_irqchip_init(bool cold_boot) if (cold_boot) { rc = plic_cold_irqchip_init(FU540_PLIC_ADDR, - FU540_PLIC_NUM_SOURCES, - FU540_HART_COUNT); + FU540_PLIC_NUM_SOURCES); if (rc) return rc; } - return plic_warm_irqchip_init(hartid, (hartid) ? (2 * hartid - 1) : 0, + return plic_warm_irqchip_init((hartid) ? (2 * hartid - 1) : 0, (hartid) ? (2 * hartid) : -1); } |