forked from Mirrors/opensbi
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>
This commit is contained in:
@@ -23,6 +23,16 @@ int sbi_system_final_init(struct sbi_scratch *scratch, bool cold_boot)
|
||||
return sbi_platform_final_init(sbi_platform_ptr(scratch), cold_boot);
|
||||
}
|
||||
|
||||
void sbi_system_early_exit(struct sbi_scratch *scratch)
|
||||
{
|
||||
sbi_platform_early_exit(sbi_platform_ptr(scratch));
|
||||
}
|
||||
|
||||
void sbi_system_final_exit(struct sbi_scratch *scratch)
|
||||
{
|
||||
sbi_platform_final_exit(sbi_platform_ptr(scratch));
|
||||
}
|
||||
|
||||
void __attribute__((noreturn))
|
||||
sbi_system_reboot(struct sbi_scratch *scratch, u32 type)
|
||||
|
||||
|
Reference in New Issue
Block a user