aboutsummaryrefslogtreecommitdiff
path: root/include/skiboot.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/skiboot.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/skiboot.h')
-rw-r--r--include/skiboot.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/skiboot.h b/include/skiboot.h
index 96caa27..0f6a855 100644
--- a/include/skiboot.h
+++ b/include/skiboot.h
@@ -285,6 +285,11 @@ extern void fast_sleep_exit(void);
/* Fallback fake RTC */
extern void fake_rtc_init(void);
+/* Exceptions */
+struct stack_frame;
+extern void __noreturn exception_entry(struct stack_frame *stack);
+extern void __noreturn exception_entry_pm_sreset(void);
+
/* Assembly in head.S */
extern void disable_machine_check(void);
extern void enable_machine_check(void);