You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
518 B
25 lines
518 B
#ifndef _I386_BUG_H
|
|
#define _I386_BUG_H
|
|
|
|
#include <linux/config.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_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
|
|
|
|
#define HAVE_ARCH_BUG
|
|
#include <asm-generic/bug.h>
|
|
|
|
#endif
|
|
|