lib: sbi: Update sbi_{entry,init}_count() to take a hart index

All callers already have the hartindex available, so this removes a
hartid to hartindex conversion.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
This commit is contained in:
Samuel Holland
2024-08-30 08:49:15 -07:00
committed by Anup Patel
parent 9f86524b58
commit 3962be84d4
4 changed files with 12 additions and 10 deletions

View File

@@ -324,8 +324,8 @@ int sbi_hsm_hart_start(struct sbi_scratch *scratch,
if (!hsm_start_ticket_acquire(hdata))
return SBI_EINVAL;
init_count = sbi_init_count(hartid);
entry_count = sbi_entry_count(hartid);
init_count = sbi_init_count(hartindex);
entry_count = sbi_entry_count(hartindex);
rscratch->next_arg1 = arg1;
rscratch->next_addr = saddr;