bug.h

来自「Linux Kernel 2.6.9 for OMAP1710」· C头文件 代码 · 共 26 行

H
26
字号
#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. */#if 1	/* Set to zero for a slightly smaller kernel */#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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?