aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2023-09-01 17:41:07 +0530
committerAnup Patel <anup@brainfault.org>2023-09-24 11:39:38 +0530
commit78c667b6fc07d2ea783fbd18f43a3f8191de6164 (patch)
tree9f69058b6b03f528b40c08ad0a61d20804e57745 /platform
parente632cd7c816736dc9dab7597b59f9f77a7925fb3 (diff)
downloadopensbi-78c667b6fc07d2ea783fbd18f43a3f8191de6164.zip
opensbi-78c667b6fc07d2ea783fbd18f43a3f8191de6164.tar.gz
opensbi-78c667b6fc07d2ea783fbd18f43a3f8191de6164.tar.bz2
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>
Diffstat (limited to 'platform')
-rw-r--r--platform/generic/andes/ae350.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/generic/andes/ae350.c b/platform/generic/andes/ae350.c
index 01bd02d..80eca05 100644
--- a/platform/generic/andes/ae350.c
+++ b/platform/generic/andes/ae350.c
@@ -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);