diff options
author | Michael Neuling <mikey@neuling.org> | 2016-03-07 13:27:31 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-03-07 14:03:47 +1100 |
commit | bc85dfa8ed4ae65ddce127d7ff2f2a2a15223e04 (patch) | |
tree | d12cdca8c14cbade80b0a7493a6b7eb0e5712567 /platforms/mambo/mambo.c | |
parent | 1141ca0f74d9cf8dc8456f5ea9248e82b468d36b (diff) | |
download | skiboot-bc85dfa8ed4ae65ddce127d7ff2f2a2a15223e04.zip skiboot-bc85dfa8ed4ae65ddce127d7ff2f2a2a15223e04.tar.gz skiboot-bc85dfa8ed4ae65ddce127d7ff2f2a2a15223e04.tar.bz2 |
mambo: Add terminate callback
Add terminate callback to mambo platform so that the simulator exits.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'platforms/mambo/mambo.c')
-rw-r--r-- | platforms/mambo/mambo.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/platforms/mambo/mambo.c b/platforms/mambo/mambo.c index ecce2ad..dbed08d 100644 --- a/platforms/mambo/mambo.c +++ b/platforms/mambo/mambo.c @@ -73,6 +73,14 @@ static int64_t mambo_cec_power_down(uint64_t request __unused) return OPAL_UNSUPPORTED; } +static void __attribute__((noreturn)) mambo_terminate(const char *msg __unused) +{ + if (chip_quirk(QUIRK_MAMBO_CALLOUTS)) + mambo_sim_exit(); + + for (;;) ; +} + static int mambo_nvram_info(uint32_t *total_size) { *total_size = 0x100000; @@ -93,6 +101,7 @@ DECLARE_PLATFORM(mambo) = { .probe = mambo_probe, .init = mambo_platform_init, .cec_power_down = mambo_cec_power_down, + .terminate = mambo_terminate, .nvram_info = mambo_nvram_info, .nvram_start_read = mambo_nvram_start_read, }; |