Go to the documentation of this file.
4 #include <linux/linkage.h>
13 #ifdef CONFIG_THUMB2_KERNEL
14 #define BUG_INSTR_VALUE 0xde02
15 #define BUG_INSTR_TYPE ".hword "
17 #define BUG_INSTR_VALUE 0xe7f001f2
18 #define BUG_INSTR_TYPE ".word "
22 #define BUG() _BUG(__FILE__, __LINE__, BUG_INSTR_VALUE)
23 #define _BUG(file, line, value) __BUG(file, line, value)
25 #ifdef CONFIG_DEBUG_BUGVERBOSE
34 #define __BUG(__file, __line, __value) \
36 asm volatile("1:\t" BUG_INSTR_TYPE #__value "\n" \
37 ".pushsection .rodata.str, \"aMS\", %progbits, 1\n" \
38 "2:\t.asciz " #__file "\n" \
40 ".pushsection __bug_table,\"a\"\n" \
41 "3:\t.word 1b, 2b\n" \
42 "\t.hword " #__line ", 0\n" \
49 #define __BUG(__file, __line, __value) \
51 asm volatile(BUG_INSTR_TYPE #__value); \
66 unsigned long err,
unsigned long trap);
68 #ifdef CONFIG_ARM_LPAE
69 #define FAULT_CODE_ALIGNMENT 33
70 #define FAULT_CODE_DEBUG 34
72 #define FAULT_CODE_ALIGNMENT 1
73 #define FAULT_CODE_DEBUG 2