4 #include <linux/config.h>
7 * Define an illegal instr to trap on the bug.
8 * We don't use 0 because that marks the end of a function
9 * in the ELF ABI. That's "Boo Boo" in case you wonder...
11 #define BUG_OPCODE .long 0x00b00b00 /* For asm */
12 #define BUG_ILLEGAL_INSTR "0x00b00b00" /* For BUG macro */
18 extern void xmon(struct pt_regs
*excp
);
20 printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
25 printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
26 __asm__ __volatile__(".long " BUG_ILLEGAL_INSTR); \
30 #define PAGE_BUG(page) do { BUG(); } while (0)