diff options
Diffstat (limited to 'include/asm-sparc/head.h')
-rw-r--r-- | include/asm-sparc/head.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/asm-sparc/head.h b/include/asm-sparc/head.h index fcdba5116339..e6532c3e09c9 100644 --- a/include/asm-sparc/head.h +++ b/include/asm-sparc/head.h | |||
@@ -52,6 +52,17 @@ | |||
52 | nop; \ | 52 | nop; \ |
53 | nop; | 53 | nop; |
54 | 54 | ||
55 | #ifdef CONFIG_KGDB | ||
56 | #define KGDB_TRAP(num) \ | ||
57 | b kgdb_trap_low; \ | ||
58 | rd %psr,%l0; \ | ||
59 | nop; \ | ||
60 | nop; | ||
61 | #else | ||
62 | #define KGDB_TRAP(num) \ | ||
63 | BAD_TRAP(num) | ||
64 | #endif | ||
65 | |||
55 | /* The Get Condition Codes software trap for userland. */ | 66 | /* The Get Condition Codes software trap for userland. */ |
56 | #define GETCC_TRAP \ | 67 | #define GETCC_TRAP \ |
57 | b getcc_trap_handler; mov %psr, %l0; nop; nop; | 68 | b getcc_trap_handler; mov %psr, %l0; nop; nop; |