aboutsummaryrefslogtreecommitdiff
path: root/core/init.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2015-02-04 16:07:44 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-09 13:55:26 +1100
commite8b2e4ab0683dbbdf975c96a22c374d05dac8d90 (patch)
tree423c2a2a83914750a65ba03323193033c513d103 /core/init.c
parent91b9a6f43ab16a66c4fe792a5d2615eea8a5620c (diff)
downloadskiboot-e8b2e4ab0683dbbdf975c96a22c374d05dac8d90.zip
skiboot-e8b2e4ab0683dbbdf975c96a22c374d05dac8d90.tar.gz
skiboot-e8b2e4ab0683dbbdf975c96a22c374d05dac8d90.tar.bz2
platform: Add exit platform hook
Add a platform hook that is called just prior to loading and running the payload. Signed-off-by: Alistair Popple <alistair@popple.id.au> Reviewed-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'core/init.c')
-rw-r--r--core/init.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/init.c b/core/init.c
index 3923164..a4a64d3 100644
--- a/core/init.c
+++ b/core/init.c
@@ -366,6 +366,9 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
op_display(OP_LOG, OP_MOD_INIT, 0x000A);
+ if (platform.exit)
+ platform.exit();
+
/* Load kernel LID */
if (!load_kernel()) {
op_display(OP_FATAL, OP_MOD_INIT, 1);