From: kfraser@localhost.localdomain Date: Tue, 7 Nov 2006 10:41:35 +0000 (+0000) Subject: [XEN] Remove unnecessary FORCE_CRASH() macro. X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3402add9b46b311a23e513ac9bed27cd36604197;p=xen.git [XEN] Remove unnecessary FORCE_CRASH() macro. Signed-off-by: Keir Fraser --- diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index d6c84278eb..6a97fc2965 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -880,9 +880,9 @@ void panic(const char *fmt, ...) void __bug(char *file, int line) { console_start_sync(); - debugtrace_dump(); printk("BUG at %s:%d\n", file, line); - FORCE_CRASH(); + dump_execution_state(); + panic("BUG at %s:%d\n", file, line); for ( ; ; ) ; } diff --git a/xen/include/asm-ia64/config.h b/xen/include/asm-ia64/config.h index 9cb2aeaea3..92bfd364b1 100644 --- a/xen/include/asm-ia64/config.h +++ b/xen/include/asm-ia64/config.h @@ -271,13 +271,6 @@ struct screen_info { }; #endif /* __ASSEMBLY__ */ #endif /* __XEN_IA64_CONFIG_H__ */ -#ifndef __ASSEMBLY__ -#include -#define FORCE_CRASH() asm("break.m 0;;"); -#else -#define FORCE_CRASH break.m 0;; -#endif - /* Allow .serialize.data/instruction in asm files. Old as doesn't handle this. */ #define HAVE_SERIALIZE_DIRECTIVE diff --git a/xen/include/asm-ia64/debugger.h b/xen/include/asm-ia64/debugger.h index e320ff68cc..104cea9bfc 100644 --- a/xen/include/asm-ia64/debugger.h +++ b/xen/include/asm-ia64/debugger.h @@ -23,7 +23,6 @@ #define __ASM_DEBUGGER_H__ // this number is an arbitary number which is not used for any other purpose -// __builtin_trap(), FORCE_CRASH() 0x0 // ski 0x80001, 0x80002 // kdb 0x80100, 0x80101 // kprobe 0x80200, jprobe 0x80300 diff --git a/xen/include/asm-powerpc/powerpc64/config.h b/xen/include/asm-powerpc/powerpc64/config.h index cf16dac479..86183d1441 100644 --- a/xen/include/asm-powerpc/powerpc64/config.h +++ b/xen/include/asm-powerpc/powerpc64/config.h @@ -36,10 +36,4 @@ #define HAS_FLOAT 1 #define HAS_VMX 1 -#ifndef __ASSEMBLY__ - -#define FORCE_CRASH() __asm__ __volatile__ ( "trap" ) - -#endif /* __ASSEMBLY__ */ - #endif diff --git a/xen/include/asm-x86/config.h b/xen/include/asm-x86/config.h index 879bdbf80b..f3b9cbe8b4 100644 --- a/xen/include/asm-x86/config.h +++ b/xen/include/asm-x86/config.h @@ -86,13 +86,6 @@ #ifndef __ASSEMBLY__ extern unsigned long _end; /* standard ELF symbol */ - -static inline void FORCE_CRASH(void) __attribute__((noreturn,always_inline)); -static inline void FORCE_CRASH(void) -{ - __asm__ __volatile__ ( "ud2" ); - while(1); -} #endif /* __ASSEMBLY__ */ #if defined(__x86_64__)