2005-04-17 00:20:36 +02:00
|
|
|
#ifndef _I386_BUG_H
|
|
|
|
#define _I386_BUG_H
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Tell the user there is some problem.
|
|
|
|
* The offending file and line are encoded after the "officially
|
|
|
|
* undefined" opcode for parsing in the trap handler.
|
|
|
|
*/
|
|
|
|
|
2005-05-01 17:59:01 +02:00
|
|
|
#ifdef CONFIG_BUG
|
|
|
|
#define HAVE_ARCH_BUG
|
2005-04-17 00:20:36 +02:00
|
|
|
#ifdef CONFIG_DEBUG_BUGVERBOSE
|
|
|
|
#define BUG() \
|
|
|
|
__asm__ __volatile__( "ud2\n" \
|
|
|
|
"\t.word %c0\n" \
|
|
|
|
"\t.long %c1\n" \
|
|
|
|
: : "i" (__LINE__), "i" (__FILE__))
|
|
|
|
#else
|
|
|
|
#define BUG() __asm__ __volatile__("ud2\n")
|
|
|
|
#endif
|
2005-05-01 17:59:01 +02:00
|
|
|
#endif
|
2005-04-17 00:20:36 +02:00
|
|
|
|
|
|
|
#include <asm-generic/bug.h>
|
|
|
|
#endif
|