]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
microblaze: Remove old user debugging gdb stub
authorMichal Simek <monstr@monstr.eu>
Tue, 3 Aug 2010 09:32:20 +0000 (11:32 +0200)
committerMichal Simek <monstr@monstr.eu>
Thu, 21 Oct 2010 05:51:23 +0000 (15:51 +1000)
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>
arch/microblaze/kernel/exceptions.c

index 7dd4d127fce8a767d6e563251d218c06c7af8733..478f2943ede77d3e5b6a507e6bec662dd7f1424c 100644 (file)
@@ -72,7 +72,6 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
                                                        int fsr, int addr)
 {
 #ifdef CONFIG_MMU
-       int code;
        addr = regs->pc;
 #endif
 
@@ -144,13 +143,7 @@ asmlinkage void full_exception(struct pt_regs *regs, unsigned int type,
 #ifdef CONFIG_MMU
        case MICROBLAZE_PRIVILEGED_EXCEPTION:
                pr_debug("Privileged exception\n");
-               /* "brk r0,r0" - used as debug breakpoint - old toolchain */
-               if (get_user(code, (unsigned long *)regs->pc) == 0
-                       && code == 0x980c0000) {
-                       _exception(SIGTRAP, regs, TRAP_BRKPT, addr);
-               } else {
-                       _exception(SIGILL, regs, ILL_PRVOPC, addr);
-               }
+               _exception(SIGILL, regs, ILL_PRVOPC, addr);
                break;
 #endif
        default: