summaryrefslogtreecommitdiffstats
path: root/src/kernel/terminate.C
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/terminate.C')
-rw-r--r--src/kernel/terminate.C15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/kernel/terminate.C b/src/kernel/terminate.C
index cb70e9be6..308e52b2e 100644
--- a/src/kernel/terminate.C
+++ b/src/kernel/terminate.C
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2018 */
+/* Contributors Listed Below - COPYRIGHT 2012,2019 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -27,6 +27,7 @@
#include <kernel/hbterminatetypes.H>
#include <kernel/terminate.H>
#include <sys/sync.h>
+#include <arch/ppc.H>
#ifndef BOOTLOADER
#include <stdint.h>
#include <kernel/console.H>
@@ -56,6 +57,9 @@ HB_Descriptor kernel_hbDescriptor =
void terminateExecuteTI()
{
+ // Trigger a hostboot dump in Simics
+ MAGIC_INSTRUCTION(MAGIC_HB_DUMP);
+
// Call the function that actually executes the TI code.
p9_force_attn();
}
@@ -128,4 +132,13 @@ void termSetHbDump(void)
return;
}
+
+void termSetIstep(uint32_t i_istep)
+{
+ // Set istep into progress code word of the SRC
+ kernel_TIDataArea.src.SRCword4 = i_istep;
+ return;
+}
+
+
#endif // BOOTLOADER
OpenPOWER on IntegriCloud