blob: 823616b5020b366ba5b20e06529d0095748e7477 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_IA64_BUG_H
2#define _ASM_IA64_BUG_H
3
Matt Mackallc8538a72005-05-01 08:59:01 -07004#ifdef CONFIG_BUG
Andrew Mortona1365642006-01-08 01:04:09 -08005#define ia64_abort() __builtin_trap()
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#define BUG() do { printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); ia64_abort(); } while (0)
7
Matt Mackallc8538a72005-05-01 08:59:01 -07008/* should this BUG be made generic? */
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#define HAVE_ARCH_BUG
Matt Mackallc8538a72005-05-01 08:59:01 -070010#endif
11
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#include <asm-generic/bug.h>
13
14#endif