blob: 87d49a5bdc63a5863a49f912bd3048694c6c1b59 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_BUG_H
2#define __ASM_BUG_H
3
Ralf Baechlefdb551a2005-05-19 12:08:04 +00004#include <linux/config.h>
5
6#ifdef CONFIG_BUG
7
Linus Torvalds1da177e2005-04-16 15:20:36 -07008#include <asm/break.h>
9
10#define BUG() \
11do { \
12 __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \
13} while (0)
Ralf Baechle8592d4c2005-10-29 19:32:38 +010014
15#define HAVE_ARCH_BUG
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Linus Torvalds1da177e2005-04-16 15:20:36 -070017#endif
Ralf Baechlefdb551a2005-05-19 12:08:04 +000018
Ralf Baechleffd099b2005-05-19 17:05:09 +000019#include <asm-generic/bug.h>
20
Ralf Baechlefdb551a2005-05-19 12:08:04 +000021#endif /* __ASM_BUG_H */