Commit 5c427819 authored by Anton Blanchard's avatar Anton Blanchard

pp64: move BUG into asm/bug.h

parent 1b46b7b8
#ifndef _PPC64_BUG_H
#define _PPC64_BUG_H
#include <linux/config.h>
#ifdef CONFIG_XMON
struct pt_regs;
extern void xmon(struct pt_regs *excp);
#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 " BUG_ILLEGAL_INSTR); \
} while (0)
#endif
#define PAGE_BUG(page) do { BUG(); } while (0)
#endif
...@@ -103,22 +103,6 @@ typedef unsigned long pgprot_t; ...@@ -103,22 +103,6 @@ typedef unsigned long pgprot_t;
#endif #endif
#ifdef CONFIG_XMON
#include <asm/ptrace.h>
extern void xmon(struct pt_regs *excp);
#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 " BUG_ILLEGAL_INSTR); \
} while (0)
#endif
#define PAGE_BUG(page) do { BUG(); } while (0)
/* Pure 2^n version of get_order */ /* Pure 2^n version of get_order */
static inline int get_order(unsigned long size) static inline int get_order(unsigned long size)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment