aboutsummaryrefslogtreecommitdiff
path: root/core/opal-dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'core/opal-dump.c')
-rw-r--r--core/opal-dump.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/opal-dump.c b/core/opal-dump.c
index 9ca01e5..bb90c45 100644
--- a/core/opal-dump.c
+++ b/core/opal-dump.c
@@ -16,6 +16,7 @@
#define pr_fmt(fmt) "DUMP: " fmt
+#include <cpu.h>
#include <device.h>
#include <mem-map.h>
#include <mem_region.h>
@@ -328,6 +329,12 @@ static int64_t opal_mpipl_register_tag(enum opal_mpipl_tags tag,
return rc;
}
+void opal_mpipl_save_crashing_pir(void)
+{
+ mpipl_metadata->crashing_pir = this_cpu()->pir;
+ prlog(PR_NOTICE, "Crashing PIR = 0x%x\n", this_cpu()->pir);
+}
+
void opal_mpipl_init(void)
{
void *mdst_base = (void *)MDST_TABLE_BASE;