aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2010-08-03 05:32:20 -0400
committerMichal Simek <monstr@monstr.eu>2010-10-21 01:51:23 -0400
commit0425609680927f3368b0e0270452d41759d43b3f (patch)
treeeb462107976ea43a61add98a86e840bc951c0242 /arch/microblaze
parent95d3a8cd1596b7d34b873d1fa5a70bbc656f5410 (diff)
microblaze: Remove old user debugging gdb stub
Old gdb uses priviledged exception handler to handle gdb exception. New gdb uses brki r16, 0x18 that's why we can remove old gdb support. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/exceptions.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/microblaze/kernel/exceptions.c b/arch/microblaze/kernel/exceptions.c
index 7dd4d127fce..478f2943ede 100644
--- a/arch/microblaze/kernel/exceptions.c
+++ b/arch/microblaze/kernel/exceptions.c
@@ -72,7 +72,6 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
72 int fsr, int addr) 72 int fsr, int addr)
73{ 73{
74#ifdef CONFIG_MMU 74#ifdef CONFIG_MMU
75 int code;
76 addr = regs->pc; 75 addr = regs->pc;
77#endif 76#endif
78 77
@@ -144,13 +143,7 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
144#ifdef CONFIG_MMU 143#ifdef CONFIG_MMU
145 case MICROBLAZE_PRIVILEGED_EXCEPTION: 144 case MICROBLAZE_PRIVILEGED_EXCEPTION:
146 pr_debug("Privileged exception\n"); 145 pr_debug("Privileged exception\n");
147 /* "brk r0,r0" - used as debug breakpoint - old toolchain */ 146 _exception(SIGILL, regs, ILL_PRVOPC, addr);
148 if (get_user(code, (unsigned long *)regs->pc) == 0
149 && code == 0x980c0000) {
150 _exception(SIGTRAP, regs, TRAP_BRKPT, addr);
151 } else {
152 _exception(SIGILL, regs, ILL_PRVOPC, addr);
153 }
154 break; 147 break;
155#endif 148#endif
156 default: 149 default: