summaryrefslogtreecommitdiff
path: root/include/asm-ppc/bug.h
blob: be916f56f9f2f908bb446c2cb5a967ba60773abd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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