diff options
author | Samuel Holland <samuel.holland@sifive.com> | 2024-10-25 11:59:46 -0700 |
---|---|---|
committer | Anup Patel <anup@brainfault.org> | 2024-11-11 18:17:15 +0530 |
commit | be9752a071475ae1d9e58a2dfcb8e83185fb7ae5 (patch) | |
tree | b4a3fb641c70ae2933956fb5a0134c186898a139 /platform/generic/platform.c | |
parent | db8f03e51237168c7fcff3d6aaa9058d6675b017 (diff) | |
download | opensbi-be9752a071475ae1d9e58a2dfcb8e83185fb7ae5.zip opensbi-be9752a071475ae1d9e58a2dfcb8e83185fb7ae5.tar.gz opensbi-be9752a071475ae1d9e58a2dfcb8e83185fb7ae5.tar.bz2 |
lib: sbi_ipi: Make .ipi_clear always target the current hart
All existing users of this operation target the current hart, and it
seems unlikely that a future user will need to clear the pending IPI
status of a remote hart. Simplify the logic by changing .ipi_clear (and
its wrapper sbi_ipi_raw_clear()) to always operate on the current hart.
This incidentally fixes a bug introduced in commit 78c667b6fc07 ("lib:
sbi: Prefer hartindex over hartid in IPI framework"), which changed the
.ipi_clear parameter from a hartid to a hart index, but failed to update
the warm_init functions to match.
Fixes: 78c667b6fc07 ("lib: sbi: Prefer hartindex over hartid in IPI framework")
Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'platform/generic/platform.c')
0 files changed, 0 insertions, 0 deletions