mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-30 21:46:31 +00:00
62c4f0a2d5
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
26 lines
516 B
C
26 lines
516 B
C
#ifndef _I386_BUG_H
|
|
#define _I386_BUG_H
|
|
|
|
|
|
/*
|
|
* Tell the user there is some problem.
|
|
* The offending file and line are encoded after the "officially
|
|
* undefined" opcode for parsing in the trap handler.
|
|
*/
|
|
|
|
#ifdef CONFIG_BUG
|
|
#define HAVE_ARCH_BUG
|
|
#ifdef CONFIG_DEBUG_BUGVERBOSE
|
|
#define BUG() \
|
|
__asm__ __volatile__( "ud2\n" \
|
|
"\t.word %c0\n" \
|
|
"\t.long %c1\n" \
|
|
: : "i" (__LINE__), "i" (__FILE__))
|
|
#else
|
|
#define BUG() __asm__ __volatile__("ud2\n")
|
|
#endif
|
|
#endif
|
|
|
|
#include <asm-generic/bug.h>
|
|
#endif
|