diff options
author | Simon Glass <sjg@chromium.org> | 2018-09-15 00:50:55 -0600 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2018-09-23 21:55:30 +0200 |
commit | fe938fb0df155d902846ca39ef06cdee8869f165 (patch) | |
tree | 14cc9462c8213ca5b8f55f85269fe1875a959c14 /include/os.h | |
parent | 613185023f0e84c410a2c088dd030ca696834763 (diff) | |
download | u-boot-fe938fb0df155d902846ca39ef06cdee8869f165.tar.gz u-boot-fe938fb0df155d902846ca39ef06cdee8869f165.tar.bz2 u-boot-fe938fb0df155d902846ca39ef06cdee8869f165.zip |
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 'include/os.h')
-rw-r--r-- | include/os.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/os.h b/include/os.h index c8e0f52d30..e850f879ec 100644 --- a/include/os.h +++ b/include/os.h @@ -351,4 +351,8 @@ int os_setjmp(ulong *jmp, int size); */ void os_longjmp(ulong *jmp, int ret); +/** + * os_abort() - Raise SIGABRT to exit sandbox (e.g. to debugger) + */ +void os_abort(void); #endif |