blob: 8e1144f4a0b0141c1be789295ddcf3af66ac532d [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#endif
Ralf Baechlefdb551a2005-05-19 12:08:04 +000019
Ralf Baechleffd099b2005-05-19 17:05:09 +000020#include <asm-generic/bug.h>
21
Ralf Baechlefdb551a2005-05-19 12:08:04 +000022#endif /* __ASM_BUG_H */