diff options
author | Vasant Hegde <hegdevasant@linux.vnet.ibm.com> | 2015-09-04 16:55:12 +0530 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-09-09 15:44:15 +1000 |
commit | a770f3385aed10db07dc78698423b5cdcb48a651 (patch) | |
tree | 68e8f292bcb86e2008a836ec18540e5897cf499a /core/utils.c | |
parent | a1db4ec5b9741eaf237481aff92ef2afa61bda48 (diff) | |
download | skiboot-a770f3385aed10db07dc78698423b5cdcb48a651.zip skiboot-a770f3385aed10db07dc78698423b5cdcb48a651.tar.gz skiboot-a770f3385aed10db07dc78698423b5cdcb48a651.tar.bz2 |
platform: Add platform hook for terminate call
Current abort() call works fine on FSP based system. We need different
mechanism on BMC based machine. Hence introduce platform hook for
terminate call.
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
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, 3 insertions, 1 deletions
diff --git a/core/utils.c b/core/utils.c index df9a815..5d86ed0 100644 --- a/core/utils.c +++ b/core/utils.c @@ -17,6 +17,7 @@ #include <skiboot.h> #include <lock.h> #include <fsp.h> +#include <platform.h> #include <processor.h> #include <cpu.h> #include <stack.h> @@ -40,7 +41,8 @@ void __noreturn _abort(const char *msg) prlog(PR_EMERG, "Aborting!\n"); backtrace(); - ibm_fsp_terminate(msg); + if (platform.terminate) + platform.terminate(msg); for (;;) ; } |