X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fasm-x86_64%2Fbug.h;h=d2032f56e87c217d82cf4ed66ec98703f4049768;hb=53bc2c949a154cbc34807a97795c90e8894aac0b;hp=44d70dea00e77b360a88d8bb2b7974b20a32aa47;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/include/asm-x86_64/bug.h b/include/asm-x86_64/bug.h index 44d70dea0..d2032f56e 100644 --- a/include/asm-x86_64/bug.h +++ b/include/asm-x86_64/bug.h @@ -6,27 +6,20 @@ /* * Tell the user there is some problem. The exception handler decodes * this frame. - */ -struct bug_frame { - unsigned char ud2[2]; + */ +struct bug_frame { + unsigned char ud2[2]; /* should use 32bit offset instead, but the assembler doesn't - like it */ - char *filename; - unsigned short line; -} __attribute__((packed)); + like it */ + char *filename; + unsigned short line; +} __attribute__((packed)); +#define HAVE_ARCH_BUG #define BUG() \ asm volatile("ud2 ; .quad %c1 ; .short %c0" :: \ "i"(__LINE__), "i" (__stringify(KBUILD_BASENAME))) -#define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0) -#define PAGE_BUG(page) BUG() void out_of_line_bug(void); - -#define WARN_ON(condition) do { \ - if (unlikely((condition)!=0)) { \ - printk("Badness in %s at %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \ - dump_stack(); \ - } \ -} while (0) +#include #endif