Go to the documentation of this file. 1 #ifndef __ASM_CRISv10_ARCH_BUG_H
2 #define __ASM_CRISv10_ARCH_BUG_H
7 #ifdef CONFIG_DEBUG_BUGVERBOSE
16 #define BUG_PREFIX 0x0D7F
17 #define BUG_MAGIC 0x00001234
35 __asm__ __volatile__ ("clear.d [" __stringify(BUG_MAGIC) "]\n\t"\
38 : : "i" (__LINE__), "i" (__FILE__))
46 __asm__ __volatile__ ("clear.d [" __stringify(BUG_MAGIC) "]\n\t"\
47 "movu.w " __stringify(__LINE__) ",$r0\n\t"\
49 ".section .rodata\n" \
50 "0:\t.string \"" __FILE__ "\"\n\t" \
57 #define BUG() (*(int *)0 = 0)