aboutsummaryrefslogtreecommitdiff
path: root/include/sbi/sbi_trap.h
diff options
context:
space:
mode:
authorAnup Patel <anup.patel@wdc.com>2020-12-29 11:39:22 +0530
committerAnup Patel <anup@brainfault.org>2021-01-07 09:53:17 +0530
commitb7df5e4392d34d8b8d5290d5b857676e672d4c96 (patch)
tree193d41e0ea471a58e64100c6f57ec0152432ff17 /include/sbi/sbi_trap.h
parent80bc5065bb67f9d118b83f64cbe96f2e3e1bc0c6 (diff)
lib: sbi: Introduce sbi_trap_exit() API
We introduce sbi_trap_exit() API which can help non-firmware (i.e. generic or platform) code to force exit trap/interrupt handling and resume execution at context pointed by parameter "const struct sbi_trap_regs *regs". This new sbi_trap_exit() API will help Keystone Enclave project to resume execution of enclave from custom SBI call handler. Signed-off-by: Anup Patel <anup.patel@wdc.com> Reviewed-by: Atish Patra <atish.patra@wdc.com>
Diffstat (limited to 'include/sbi/sbi_trap.h')
-rw-r--r--include/sbi/sbi_trap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sbi/sbi_trap.h b/include/sbi/sbi_trap.h
index 5d0962f..04001df 100644
--- a/include/sbi/sbi_trap.h
+++ b/include/sbi/sbi_trap.h
@@ -207,6 +207,8 @@ int sbi_trap_redirect(struct sbi_trap_regs *regs,
void sbi_trap_handler(struct sbi_trap_regs *regs);
+void __noreturn sbi_trap_exit(const struct sbi_trap_regs *regs);
+
#endif
#endif