blob: 3f594b440abcdb65151dc4fe90b466d4e998ac14 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __ASM_BUG_H
2#define __ASM_BUG_H
3
4#include <asm/break.h>
5
Matt Mackallc8538a72005-05-01 08:59:01 -07006#ifdef CONFIG_BUG
7#define HAVE_ARCH_BUG
Linus Torvalds1da177e2005-04-16 15:20:36 -07008#define BUG() \
9do { \
10 __asm__ __volatile__("break %0" : : "i" (BRK_BUG)); \
11} while (0)
Matt Mackallc8538a72005-05-01 08:59:01 -070012#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#include <asm-generic/bug.h>
15
16#endif