]> git.neil.brown.name Git - history.git/commitdiff
PPC32: Fix a problem with 'next' and 'step' type KGDB commands.
authorMark A. Greer <mgreer@mvista.com>
Wed, 12 Mar 2003 05:48:12 +0000 (22:48 -0700)
committerTom Rini <trini@kernel.crashing.org>
Wed, 12 Mar 2003 05:48:12 +0000 (22:48 -0700)
arch/ppc/kernel/ppc-stub.c

index 3a048ee52736823c18f3b403eca561317c04de99..3664476b49138617060e88e6c870b56f4958eaff 100644 (file)
@@ -626,7 +626,7 @@ handle_exception (struct pt_regs *regs)
        *ptr++ = hexchars[SP_REGNUM >> 4];
        *ptr++ = hexchars[SP_REGNUM & 0xf];
        *ptr++ = ':';
-       ptr = mem2hex(((char *)&regs) + SP_REGNUM*4, ptr, 4);
+       ptr = mem2hex(((char *)regs) + SP_REGNUM*4, ptr, 4);
        *ptr++ = ';';
 #endif
 
@@ -805,7 +805,6 @@ handle_exception (struct pt_regs *regs)
                        set_msr(msr);
 #else
                        regs->msr |= MSR_SE;
-                       set_msr(msr | MSR_SE);
 #endif
                        unlock_kernel();
                        kgdb_active = 0;