mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2026-10-24 04:32:05 +01:00
lib: sbi: Prefer hartindex over hartid in IPI framework
Let us prefer hartindex over hartid in IPI framework which in-turn forces IPI users to also prefer hartindex. Signed-off-by: Anup Patel <apatel@ventanamicro.com>
This commit is contained in:
1 parent
e632cd7c81
commit
78c667b6fc
9 files changed
+44
-38
No files matched your search
@@ -33,7 +33,7 @@ static int ae350_hart_start(u32 hartid, ulong saddr)
|
||||
{
|
||||
/* Don't send wakeup command at boot-time */
|
||||
if (!sbi_init_count(hartid) || (is_andes25() && hartid == 0))
|
||||
return sbi_ipi_raw_send(hartid);
|
||||
return sbi_ipi_raw_send(sbi_hartid_to_hartindex(hartid));
|
||||
|
||||
/* Write wakeup command to the sleep hart */
|
||||
smu_set_command(&smu, WAKEUP_CMD, hartid);
|
||||
|
||||
Reference in new issue
Block a user