xref: /kernel/linux/linux-6.6/arch/ia64/include/asm/bug.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/arch/ia64/include/asm/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef _ASM_IA64_BUG_H
362306a36Sopenharmony_ci#define _ASM_IA64_BUG_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#ifdef CONFIG_BUG
662306a36Sopenharmony_ci#define ia64_abort()	__builtin_trap()
762306a36Sopenharmony_ci#define BUG() do {						\
862306a36Sopenharmony_ci	printk("kernel BUG at %s:%d!\n", __FILE__, __LINE__);	\
962306a36Sopenharmony_ci	barrier_before_unreachable();				\
1062306a36Sopenharmony_ci	ia64_abort();						\
1162306a36Sopenharmony_ci} while (0)
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci/* should this BUG be made generic? */
1462306a36Sopenharmony_ci#define HAVE_ARCH_BUG
1562306a36Sopenharmony_ci#endif
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci#include <asm-generic/bug.h>
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#endif
20

Indexes created Thu Nov 07 10:32:03 CST 2024