diff options
Diffstat (limited to 'arch/microblaze/include/asm/exceptions.h')
-rw-r--r-- | arch/microblaze/include/asm/exceptions.h | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/arch/microblaze/include/asm/exceptions.h b/arch/microblaze/include/asm/exceptions.h index 4c7b5d037c88..6479097b802b 100644 --- a/arch/microblaze/include/asm/exceptions.h +++ b/arch/microblaze/include/asm/exceptions.h | |||
@@ -14,6 +14,11 @@ | |||
14 | #define _ASM_MICROBLAZE_EXCEPTIONS_H | 14 | #define _ASM_MICROBLAZE_EXCEPTIONS_H |
15 | 15 | ||
16 | #ifdef __KERNEL__ | 16 | #ifdef __KERNEL__ |
17 | |||
18 | #ifndef CONFIG_MMU | ||
19 | #define EX_HANDLER_STACK_SIZ (4*19) | ||
20 | #endif | ||
21 | |||
17 | #ifndef __ASSEMBLY__ | 22 | #ifndef __ASSEMBLY__ |
18 | 23 | ||
19 | /* Macros to enable and disable HW exceptions in the MSR */ | 24 | /* Macros to enable and disable HW exceptions in the MSR */ |
@@ -64,22 +69,6 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type, | |||
64 | void die(const char *str, struct pt_regs *fp, long err); | 69 | void die(const char *str, struct pt_regs *fp, long err); |
65 | void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr); | 70 | void _exception(int signr, struct pt_regs *regs, int code, unsigned long addr); |
66 | 71 | ||
67 | #if defined(CONFIG_KGDB) | ||
68 | void (*debugger)(struct pt_regs *regs); | ||
69 | int (*debugger_bpt)(struct pt_regs *regs); | ||
70 | int (*debugger_sstep)(struct pt_regs *regs); | ||
71 | int (*debugger_iabr_match)(struct pt_regs *regs); | ||
72 | int (*debugger_dabr_match)(struct pt_regs *regs); | ||
73 | void (*debugger_fault_handler)(struct pt_regs *regs); | ||
74 | #else | ||
75 | #define debugger(regs) do { } while (0) | ||
76 | #define debugger_bpt(regs) 0 | ||
77 | #define debugger_sstep(regs) 0 | ||
78 | #define debugger_iabr_match(regs) 0 | ||
79 | #define debugger_dabr_match(regs) 0 | ||
80 | #define debugger_fault_handler ((void (*)(struct pt_regs *))0) | ||
81 | #endif | ||
82 | |||
83 | #endif /*__ASSEMBLY__ */ | 72 | #endif /*__ASSEMBLY__ */ |
84 | #endif /* __KERNEL__ */ | 73 | #endif /* __KERNEL__ */ |
85 | #endif /* _ASM_MICROBLAZE_EXCEPTIONS_H */ | 74 | #endif /* _ASM_MICROBLAZE_EXCEPTIONS_H */ |