summaryrefslogtreecommitdiffstats
path: root/src/kernel
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2019-12-18 08:33:09 -0600
committerWilliam G Hoffa <wghoffa@us.ibm.com>2020-01-07 13:14:40 -0600
commit4198ffbc2ae5404b05baff55be8e6f39578389cc (patch)
tree9a584a1c840224787aa954dcc689e39e9a10c7ba /src/kernel
parentddad6a525c4c12bfda720f065f359da62933580e (diff)
downloadtalos-hostboot-4198ffbc2ae5404b05baff55be8e6f39578389cc.tar.gz
talos-hostboot-4198ffbc2ae5404b05baff55be8e6f39578389cc.zip
Force a Hostboot dump on any TI in Simics
Execute a magic instruction in the TI path to force a hostboot dump to be collected on any TI while running in Simics. Change-Id: I8aeffb2b646bbe8480568e8af33a658400fa01a5 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/88831 Reviewed-by: Nicholas E Bofferding <bofferdn@us.ibm.com> Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: William G Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/terminate.C4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kernel/terminate.C b/src/kernel/terminate.C
index fb3e1d069..308e52b2e 100644
--- a/src/kernel/terminate.C
+++ b/src/kernel/terminate.C
@@ -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();
}
OpenPOWER on IntegriCloud