Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __ASM_BUG_H |
2 | #define __ASM_BUG_H | ||||
3 | |||||
Ralf Baechle | fdb551a | 2005-05-19 12:08:04 +0000 | [diff] [blame^] | 4 | #include <linux/config.h> |
5 | |||||
6 | #ifdef CONFIG_BUG | ||||
7 | |||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | #include <asm/break.h> |
9 | |||||
Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 10 | #ifdef CONFIG_BUG |
11 | #define HAVE_ARCH_BUG | ||||
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 12 | #define BUG() \ |
13 | do { \ | ||||
14 | __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \ | ||||
15 | } while (0) | ||||
Matt Mackall | c8538a7 | 2005-05-01 08:59:01 -0700 | [diff] [blame] | 16 | #endif |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | #include <asm-generic/bug.h> |
19 | |||||
20 | #endif | ||||
Ralf Baechle | fdb551a | 2005-05-19 12:08:04 +0000 | [diff] [blame^] | 21 | |
22 | #endif /* __ASM_BUG_H */ |