lib: Add system early_exit and final_exit APIs
authorAnup Patel <anup.patel@wdc.com>
Fri, 3 Jan 2020 03:40:41 +0000 (09:10 +0530)
committerAnup Patel <anup.patel@wdc.com>
Tue, 7 Jan 2020 06:40:48 +0000 (12:10 +0530)
commit55e191e3b09c4979212c592a4e86e0f561ce1f97
treef23986fe49fd1291b03d2da152e31f189b2ad388
parentc3e406f1609af8f14e93419aa6722e646a8f4f56
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>
include/sbi/sbi_platform.h
include/sbi/sbi_system.h
lib/sbi/sbi_init.c
lib/sbi/sbi_system.c