aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2019-06-18 17:29:16 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-06-24 15:59:07 +1000
commit9fc0c1287ada4d3ba50dcb76bbc3fc9beaae0bb1 (patch)
tree93d4ae19a5987af0b48c5633cd899663e87fcfca /core
parent915097bdb87f0bb7402ccf3ea7a9c6438ad25a05 (diff)
downloadskiboot-9fc0c1287ada4d3ba50dcb76bbc3fc9beaae0bb1.zip
skiboot-9fc0c1287ada4d3ba50dcb76bbc3fc9beaae0bb1.tar.gz
skiboot-9fc0c1287ada4d3ba50dcb76bbc3fc9beaae0bb1.tar.bz2
Move FSP specific op-panel calls to platform.exit()
We move the platform exit call much closer to executing the kernel, which should all be safe, and in fact a much better time to do watchdog related things. Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r--core/init.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/core/init.c b/core/init.c
index 55b5620..c2b7b70 100644
--- a/core/init.c
+++ b/core/init.c
@@ -534,9 +534,6 @@ 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);
@@ -590,13 +587,6 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
op_display(OP_LOG, OP_MOD_INIT, 0x000C);
- /* Start the kernel */
- if (!is_reboot)
- op_panel_disable_src_echo();
-
- /* Clear SRCs on the op-panel when Linux starts */
- op_panel_clear_src();
-
mem_dump_free();
/* Dump the selected console */
@@ -611,6 +601,9 @@ void __noreturn load_and_boot_kernel(bool is_reboot)
assert(0);
}
+ if (platform.exit)
+ platform.exit();
+
/* Take processors out of nap */
cpu_set_sreset_enable(false);
cpu_set_ipi_enable(false);