blob: 1b4fc52a59e86beb62adf210158260c453a01ab5 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_SH_BUG_H
2#define __ASM_SH_BUG_H
3
Linus Torvalds1da177e2005-04-16 15:20:36 -07004
Matt Mackallc8538a72005-05-01 08:59:01 -07005#ifdef CONFIG_BUG
Linus Torvalds1da177e2005-04-16 15:20:36 -07006/*
7 * Tell the user there is some problem.
8 */
9#define BUG() do { \
10 printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); \
11 *(volatile int *)0 = 0; \
12} while (0)
13
14#define HAVE_ARCH_BUG
Matt Mackallc8538a72005-05-01 08:59:01 -070015#endif
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#include <asm-generic/bug.h>
18
19#endif