blob: 758712f1c88f8767016a477351aacb97735f47d8 [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
Matt Mackallc8538a72005-05-01 08:59:01 -070010#ifdef CONFIG_BUG
11#define HAVE_ARCH_BUG
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#define BUG() \
13do { \
14 __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \
15} while (0)
Matt Mackallc8538a72005-05-01 08:59:01 -070016#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
Linus Torvalds1da177e2005-04-16 15:20:36 -070018#include <asm-generic/bug.h>
19
20#endif
Ralf Baechlefdb551a2005-05-19 12:08:04 +000021
22#endif /* __ASM_BUG_H */