diff options
Diffstat (limited to 'arch/arm/include/asm/assembler.h')
-rw-r--r-- | arch/arm/include/asm/assembler.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/include/asm/assembler.h b/arch/arm/include/asm/assembler.h index ad301f107dd2..bc8d4bbd82e2 100644 --- a/arch/arm/include/asm/assembler.h +++ b/arch/arm/include/asm/assembler.h | |||
@@ -518,4 +518,22 @@ THUMB( orr \reg , \reg , #PSR_T_BIT ) | |||
518 | #endif | 518 | #endif |
519 | .endm | 519 | .endm |
520 | 520 | ||
521 | .macro bug, msg, line | ||
522 | #ifdef CONFIG_THUMB2_KERNEL | ||
523 | 1: .inst 0xde02 | ||
524 | #else | ||
525 | 1: .inst 0xe7f001f2 | ||
526 | #endif | ||
527 | #ifdef CONFIG_DEBUG_BUGVERBOSE | ||
528 | .pushsection .rodata.str, "aMS", %progbits, 1 | ||
529 | 2: .asciz "\msg" | ||
530 | .popsection | ||
531 | .pushsection __bug_table, "aw" | ||
532 | .align 2 | ||
533 | .word 1b, 2b | ||
534 | .hword \line | ||
535 | .popsection | ||
536 | #endif | ||
537 | .endm | ||
538 | |||
521 | #endif /* __ASM_ASSEMBLER_H__ */ | 539 | #endif /* __ASM_ASSEMBLER_H__ */ |