ia64/xen-unstable

diff xen/include/asm-ia64/bug.h @ 18760:958942c44332

[IA64] make ia64 dump_execution_state() print stack trace for debugging.

make ia64 dump_execution_state() print stack trace for debugging.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Thu Nov 06 12:14:06 2008 +0900 (2008-11-06)
parents 6b1795ee1b19
children
line diff
     1.1 --- a/xen/include/asm-ia64/bug.h	Tue Nov 04 14:35:24 2008 +0900
     1.2 +++ b/xen/include/asm-ia64/bug.h	Thu Nov 06 12:14:06 2008 +0900
     1.3 @@ -4,7 +4,12 @@
     1.4  #define BUG() __bug(__FILE__, __LINE__)
     1.5  #define WARN() __warn(__FILE__, __LINE__)
     1.6  
     1.7 -#define dump_execution_state() printk("FIXME: implement ia64 dump_execution_state()\n")
     1.8 +#define dump_execution_state()                                      \
     1.9 +    do {                                                            \
    1.10 +        printk("FIXME: implement ia64 dump_execution_state()\n");	\
    1.11 +        dump_stack();                                               \
    1.12 +    } while (0)
    1.13 +
    1.14  #define vcpu_show_execution_state(v) printk("FIXME: implement ia64 vcpu_show_execution_state()\n")
    1.15  
    1.16  #endif /* __IA64_BUG_H__ */