From 2f52183c9a816f5ac616e06fb318f353e50e84e9 Mon Sep 17 00:00:00 2001 From: "Mark A. Greer" Date: Tue, 11 Mar 2003 22:48:12 -0700 Subject: [PATCH] PPC32: Fix a problem with 'next' and 'step' type KGDB commands. --- arch/ppc/kernel/ppc-stub.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/ppc/kernel/ppc-stub.c b/arch/ppc/kernel/ppc-stub.c index 3a048ee527368..3664476b49138 100644 --- a/arch/ppc/kernel/ppc-stub.c +++ b/arch/ppc/kernel/ppc-stub.c @@ -626,7 +626,7 @@ handle_exception (struct pt_regs *regs) *ptr++ = hexchars[SP_REGNUM >> 4]; *ptr++ = hexchars[SP_REGNUM & 0xf]; *ptr++ = ':'; - ptr = mem2hex(((char *)®s) + 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; -- 2.53.0