aboutsummaryrefslogtreecommitdiff
path: root/include/processor.h
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-01-08 00:04:26 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-02-13 14:36:44 +1100
commit8a43bf86b7d4346521bd4ebc15eb3809d3d27adb (patch)
treed17ac162d4037ecff73d27477ffc61945a37ac4e /include/processor.h
parent4ebb78cffda897c4175f6659e98e6722ea60703f (diff)
downloadskiboot-8a43bf86b7d4346521bd4ebc15eb3809d3d27adb.zip
skiboot-8a43bf86b7d4346521bd4ebc15eb3809d3d27adb.tar.gz
skiboot-8a43bf86b7d4346521bd4ebc15eb3809d3d27adb.tar.bz2
core/exceptions: implement an exception handler for non-powersave sresets
Detect non-powersave sresets and send them to the normal exception handler which prints registers and stack. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'include/processor.h')
-rw-r--r--include/processor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/processor.h b/include/processor.h
index f6b227d..0a93430 100644
--- a/include/processor.h
+++ b/include/processor.h
@@ -88,6 +88,10 @@
#define SPR_HID5 0x3f6
#define SPR_PIR 0x3ff /* RO: Processor Identification */
+/* Bits in SRR1 */
+
+#define SPR_SRR1_PM_WAKE_MASK 0x3c0000 /* PM wake reason for P8/9 */
+#define SPR_SRR1_PM_WAKE_SRESET 0x100000
/* Bits in LPCR */