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 ( ; ; ) ;
}
#endif /* __ASSEMBLY__ */
#endif /* __XEN_IA64_CONFIG_H__ */
-#ifndef __ASSEMBLY__
-#include <linux/linkage.h>
-#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
#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
#define HAS_FLOAT 1
#define HAS_VMX 1
-#ifndef __ASSEMBLY__
-
-#define FORCE_CRASH() __asm__ __volatile__ ( "trap" )
-
-#endif /* __ASSEMBLY__ */
-
#endif
#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__)