blob: 7b4739dc8f3f28387ac71a26e11089dddbc1cff5 [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
5#ifdef CONFIG_BUG
6
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#include <asm/break.h>
8
9#define BUG() \
10do { \
11 __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \
12} while (0)
Ralf Baechle8592d4c2005-10-29 19:32:38 +010013
14#define HAVE_ARCH_BUG
Linus Torvalds1da177e2005-04-16 15:20:36 -070015
Linus Torvalds1da177e2005-04-16 15:20:36 -070016#endif
Ralf Baechlefdb551a2005-05-19 12:08:04 +000017
Ralf Baechleffd099b2005-05-19 17:05:09 +000018#include <asm-generic/bug.h>
19
Ralf Baechlefdb551a2005-05-19 12:08:04 +000020#endif /* __ASM_BUG_H */