diff options
| author | Paul Mackerras <paulus@samba.org> | 2003-05-27 18:19:13 +1000 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2003-05-27 18:19:13 +1000 |
| commit | bbfc8a451d8ee1a90091c5f1066501e79a671b26 (patch) | |
| tree | 67fd800043db83f72858a3f3d73d0870172ee7b6 /include/asm-ppc | |
| parent | 75e5420797a3a4ec174a58fbab59a0a6ddd3d46f (diff) | |
PPC32: Simplify the BUG() implementation for now (a better one is coming).
Diffstat (limited to 'include/asm-ppc')
| -rw-r--r-- | include/asm-ppc/bug.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/asm-ppc/bug.h b/include/asm-ppc/bug.h index be916f56f9f2..bfc896f2daa1 100644 --- a/include/asm-ppc/bug.h +++ b/include/asm-ppc/bug.h @@ -1,21 +1,11 @@ #ifndef _PPC_BUG_H #define _PPC_BUG_H -#include <linux/config.h> -#include <asm/xmon.h> - -#ifdef CONFIG_XMON -extern void xmon(struct pt_regs *); -#define BUG() do { \ - printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ - xmon(0); \ -} while (0) -#else #define BUG() do { \ printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \ __asm__ __volatile__(".long 0x0"); \ } while (0) -#endif + #define PAGE_BUG(page) do { BUG(); } while (0) #endif |
