bug.h 324 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5
#ifndef __ASM_SH_BUG_H
#define __ASM_SH_BUG_H

#include <linux/config.h>

M
Matt Mackall 已提交
6
#ifdef CONFIG_BUG
L
Linus Torvalds 已提交
7 8 9 10 11 12 13 14 15
/*
 * Tell the user there is some problem.
 */
#define BUG() do { \
	printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
	*(volatile int *)0 = 0; \
} while (0)

#define HAVE_ARCH_BUG
M
Matt Mackall 已提交
16 17
#endif

L
Linus Torvalds 已提交
18 19 20
#include <asm-generic/bug.h>

#endif