summaryrefslogtreecommitdiff
path: root/include/sbi/sbi_system.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-01-03 06:40:41 +0300
committerAnup Patel <anup.patel@wdc.com>2020-01-07 09:40:48 +0300
commit55e191e3b09c4979212c592a4e86e0f561ce1f97 (patch)
treef23986fe49fd1291b03d2da152e31f189b2ad388 /include/sbi/sbi_system.h
parentc3e406f1609af8f14e93419aa6722e646a8f4f56 (diff)
downloadopensbi-55e191e3b09c4979212c592a4e86e0f561ce1f97.tar.xz
lib: Add system early_exit and final_exit APIs
This patch adds system-level early_exit and final_exit APIs with corresponding platform hooks. These new APIs will be primarily used by sbi_exit() in OpenSBI exit path. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi/sbi_system.h')
-rw-r--r--include/sbi/sbi_system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sbi/sbi_system.h b/include/sbi/sbi_system.h
index bf768d9..c1ef374 100644
--- a/include/sbi/sbi_system.h
+++ b/include/sbi/sbi_system.h
@@ -18,6 +18,10 @@ int sbi_system_early_init(struct sbi_scratch *scratch, bool cold_boot);
int sbi_system_final_init(struct sbi_scratch *scratch, bool cold_boot);
+void sbi_system_early_exit(struct sbi_scratch *scratch);
+
+void sbi_system_final_exit(struct sbi_scratch *scratch);
+
void __attribute__((noreturn))
sbi_system_reboot(struct sbi_scratch *scratch, u32 type);