|
|
|
|
|
|
|
|
|
|
xen-ppc-devel
[XenPPC] [xenppc-unstable] [POWERPC][XEN] if crash_debug=n then at least
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 82ddfe69c62efbe44289b4d80d27492ccea6b043
# Parent 5495e4525844250d5f359bd4d3bda8787e817711
[POWERPC][XEN] if crash_debug=n then at least dump a backtrace.
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
xen/include/asm-powerpc/debugger.h | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff -r 5495e4525844 -r 82ddfe69c62e xen/include/asm-powerpc/debugger.h
--- a/xen/include/asm-powerpc/debugger.h Tue Sep 12 06:47:22 2006 -0400
+++ b/xen/include/asm-powerpc/debugger.h Tue Sep 12 06:48:32 2006 -0400
@@ -36,8 +36,23 @@ static inline int debugger_trap_fatal(
#else /* CRASH_DEBUG */
-#define debugger_trap_fatal(_v, _r) (0)
-#define debugger_trap_immediate() ((void)0)
+static inline int debugger_trap_fatal(
+ unsigned int vector, struct cpu_user_regs *regs)
+{
+ show_backtrace(regs->gprs[1], regs->lr, regs->pc);
+ return vector;
+}
+
+static inline void debugger_trap_immediate(void)
+{
+ ulong sp;
+ ulong lr;
+
+ sp = (ulong)__builtin_frame_address(0);
+ lr = (ulong)__builtin_return_address(0);
+
+ show_backtrace(sp, lr, lr);
+}
#endif /* CRASH_DEBUG */
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [XenPPC] [xenppc-unstable] [POWERPC][XEN] if crash_debug=n then at least dump a backtrace.,
Xen patchbot-xenppc-unstable <=
|
|
|
|
|