blob: bd3eeb8d1cfa379a56456a3fd27909dbeaf2b55b [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _ASM_IA64_BUG_H
3#define _ASM_IA64_BUG_H
4
Matt Mackallc8538a72005-05-01 08:59:01 -07005#ifdef CONFIG_BUG
Andrew Mortona1365642006-01-08 01:04:09 -08006#define ia64_abort() __builtin_trap()
Linus Torvalds1da177e2005-04-16 15:20:36 -07007#define BUG() do { printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__); ia64_abort(); } while (0)
8
Matt Mackallc8538a72005-05-01 08:59:01 -07009/* should this BUG be made generic? */
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#define HAVE_ARCH_BUG
Matt Mackallc8538a72005-05-01 08:59:01 -070011#endif
12
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#include <asm-generic/bug.h>
14
15#endif