1 #ifndef __ASM_X8664_BUG_H
2 #define __ASM_X8664_BUG_H 1
4 #include <linux/stringify.h>
7 * Tell the user there is some problem. The exception handler decodes
12 /* should use 32bit offset instead, but the assembler doesn't
16 } __attribute__((packed));
19 asm volatile("ud2 ; .quad %c1 ; .short %c0" :: \
20 "i"(__LINE__), "i" (__stringify(KBUILD_BASENAME)))
21 #define BUG_ON(condition) do { if (unlikely((condition)!=0)) BUG(); } while(0)
22 #define PAGE_BUG(page) BUG()
23 void out_of_line_bug(void);
25 #define WARN_ON(condition) do { \
26 if (unlikely((condition)!=0)) { \
27 printk("Badness in %s at %s:%d\n", __FUNCTION__, __FILE__, __LINE__); \