From 6734304f8c759c782cab12ecfd6c20fb23b8ee44 Mon Sep 17 00:00:00 2001 From: Anup Patel Date: Mon, 7 Sep 2020 11:11:29 +0530 Subject: lib: sbi: Allow specifying start mode to sbi_hsm_hart_start() API The sbi_scratch already has provision to specify the next stage mode so we can leverage this to specify start mode to sbi_hsm_hart_start(). In future, this will be useful in providing SBI calls to U-mode on embedded cores where we M-mode and U-mode but no S-mode. Signed-off-by: Anup Patel Reviewed-by: Atish Patra --- include/sbi/sbi_hsm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/sbi/sbi_hsm.h') diff --git a/include/sbi/sbi_hsm.h b/include/sbi/sbi_hsm.h index 57d41ff..18d129b 100644 --- a/include/sbi/sbi_hsm.h +++ b/include/sbi/sbi_hsm.h @@ -25,7 +25,7 @@ int sbi_hsm_init(struct sbi_scratch *scratch, u32 hartid, bool cold_boot); void __noreturn sbi_hsm_exit(struct sbi_scratch *scratch); int sbi_hsm_hart_start(struct sbi_scratch *scratch, u32 hartid, - ulong saddr, ulong priv); + ulong saddr, ulong smode, ulong priv); int sbi_hsm_hart_stop(struct sbi_scratch *scratch, bool exitnow); int sbi_hsm_hart_get_state(u32 hartid); int sbi_hsm_hart_state_to_status(int state); -- cgit v1.2.3