From 2db381fc7401c3ca1637e18ec0258b9e1eff3f93 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Mon, 2 Mar 2020 16:13:50 +0530 Subject: lib: Introduce sbi_hsm_hart_started_mask() API This patch introduce sbi_hsm_hart_started_mask() API as a replacement of sbi_hart_available_mask() API. Signed-off-by: Anup Patel Reviewed-by: Bin Meng --- include/sbi/sbi_hsm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include') diff --git a/include/sbi/sbi_hsm.h b/include/sbi/sbi_hsm.h index a68eafbc..227bb6b1 100644 --- a/include/sbi/sbi_hsm.h +++ b/include/sbi/sbi_hsm.h @@ -27,5 +27,8 @@ int sbi_hsm_hart_stop(struct sbi_scratch *scratch, bool exitnow); int sbi_hsm_hart_get_state(struct sbi_scratch *scratch, u32 hartid); int sbi_hsm_hart_state_to_status(int state); bool sbi_hsm_hart_started(struct sbi_scratch *scratch, u32 hartid); +int sbi_hsm_hart_started_mask(struct sbi_scratch *scratch, + ulong hbase, ulong *out_hmask); void sbi_hsm_prepare_next_jump(struct sbi_scratch *scratch, u32 hartid); + #endif -- cgit v1.3.1