diff options
Diffstat (limited to 'include/asm-i386/page.h')
-rw-r--r-- | include/asm-i386/page.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/asm-i386/page.h b/include/asm-i386/page.h index 0490404b7..847dffbd0 100644 --- a/include/asm-i386/page.h +++ b/include/asm-i386/page.h @@ -84,6 +84,19 @@ typedef unsigned long pgprot_t; #define __PAGE_OFFSET (PAGE_OFFSET_RAW) +#ifndef __ASSEMBLY__ + +#define BUG() do { \ + printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ + __asm__ __volatile__(".byte 0x0f,0x0b"); \ +} while (0) + +#define PAGE_BUG(page) do { \ + BUG(); \ +} while (0) + +#endif /* __ASSEMBLY__ */ + #define PAGE_OFFSET ((unsigned long)__PAGE_OFFSET) #define __pa(x) ((unsigned long)(x)-PAGE_OFFSET) #define __va(x) ((void *)((unsigned long)(x)+PAGE_OFFSET)) |