summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_hsm.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-09-07 08:41:29 +0300
committerAnup Patel <anup@brainfault.org>2020-09-16 06:35:22 +0300
commit6734304f8c759c782cab12ecfd6c20fb23b8ee44 (patch)
tree37b5a05628e96be9a1740e7dcd68808d1607eddf /include/sbi/sbi_hsm.h
parentc1c7c3ee9eb70e5c25914621f0363bfe244ebc79 (diff)
downloadopensbi-6734304f8c759c782cab12ecfd6c20fb23b8ee44.tar.xz
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 <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi/sbi_hsm.h')
-rw-r--r--include/sbi/sbi_hsm.h2
1 files changed, 1 insertions, 1 deletions
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);