aboutsummaryrefslogtreecommitdiff
path: root/arch/sandbox
diff options
context:
space:
mode:
authorSimon Glass2018-09-15 00:50:55 -0600
committerAlexander Graf2018-09-23 21:55:30 +0200
commitfe938fb0df155d902846ca39ef06cdee8869f165 (patch)
tree14cc9462c8213ca5b8f55f85269fe1875a959c14 /arch/sandbox
parent613185023f0e84c410a2c088dd030ca696834763 (diff)
sandbox: Add support for calling abort()
This function is useful to signal that the application needs to exit immediate. It can be caught with a debugger (e.g. gdb). Add a stub for it so that it can be called from within sandbox when an internal error occurs. Signed-off-by: Simon Glass <sjg@chromium.org> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/cpu/os.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/sandbox/cpu/os.c b/arch/sandbox/cpu/os.c
index a1a982af2de..ca8d924cd65 100644
--- a/arch/sandbox/cpu/os.c
+++ b/arch/sandbox/cpu/os.c
@@ -652,3 +652,8 @@ void os_longjmp(ulong *jmp, int ret)
{
longjmp((struct __jmp_buf_tag *)jmp, ret);
}
+
+void os_abort(void)
+{
+ abort();
+}