mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
![Matt Mackall](/assets/img/avatar_default.png)
This patch eliminates all kernel BUGs, trims about 35k off the typical kernel, and makes the system slightly faster. Signed-off-by: Matt Mackall <mpm@selenic.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
26 lines
542 B
C
26 lines
542 B
C
#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_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
|