forked from Mirrors/opensbi
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:
@@ -161,7 +161,7 @@ static int imsic_external_irqfn(struct sbi_trap_regs *regs)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void imsic_ipi_send(u32 target_hart)
|
||||
static void imsic_ipi_send(u32 hart_index)
|
||||
{
|
||||
unsigned long reloff;
|
||||
struct imsic_regs *regs;
|
||||
@@ -169,7 +169,7 @@ static void imsic_ipi_send(u32 target_hart)
|
||||
struct sbi_scratch *scratch;
|
||||
int file;
|
||||
|
||||
scratch = sbi_hartid_to_scratch(target_hart);
|
||||
scratch = sbi_hartindex_to_scratch(hart_index);
|
||||
if (!scratch)
|
||||
return;
|
||||
|
||||
|
Reference in New Issue
Block a user