diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-11 12:17:21 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-02-11 12:17:21 +1100 |
commit | cbf0e24e6734ceb52bbefdb02fb9f35f180dad11 (patch) | |
tree | f3224f69887385434d24a6ab6275d66fbc62e727 /core/utils.c | |
parent | 4681ed91c704768b7e1d7ae97a03e693096235ec (diff) | |
download | skiboot-cbf0e24e6734ceb52bbefdb02fb9f35f180dad11.zip skiboot-cbf0e24e6734ceb52bbefdb02fb9f35f180dad11.tar.gz skiboot-cbf0e24e6734ceb52bbefdb02fb9f35f180dad11.tar.bz2 |
Make abort() update sp attn area (like assert does)
Gives better diagnostics in error logs/dumps
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/utils.c')
-rw-r--r-- | core/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/utils.c b/core/utils.c index 1a81ae2..9c94ecc 100644 --- a/core/utils.c +++ b/core/utils.c @@ -26,10 +26,10 @@ unsigned long __stack_chk_guard = 0xdeadf00dbaad300d; void __noreturn assert_fail(const char *msg) { prlog(PR_EMERG, "Assert fail: %s\n", msg); - abort(); + _abort(); } -void __noreturn abort(void) +void __noreturn _abort(void) { static bool in_abort = false; unsigned long hid0; |