From 61f776861fcabd617f7d1cbd5e5b327500b04f38 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Mon, 2 Mar 2020 16:17:49 +0530 Subject: [PATCH] lib: sbi_ecall_legacy: Use sbi_hsm_hart_started_mask() API This patch replaces use of sbi_hart_available_mask() API with sbi_hsm_hart_started_mask API. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- lib/sbi/sbi_ecall_legacy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/sbi/sbi_ecall_legacy.c b/lib/sbi/sbi_ecall_legacy.c index 8995af4..9099ee3 100644 --- a/lib/sbi/sbi_ecall_legacy.c +++ b/lib/sbi/sbi_ecall_legacy.c @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -31,9 +32,10 @@ static int sbi_load_hart_mask_unpriv(struct sbi_scratch *scratch, if (uptrap->cause) return SBI_ETRAP; } else { - mask = sbi_hart_available_mask(); + sbi_hsm_hart_started_mask(scratch, 0, &mask); } *hmask = mask; + return 0; }