Skip to contentSkip to conversation

linuxppc_2_4_devel arch/ppc/kernel/ppc-stub.c (KGDB) patch

PATCH Mark A. Greer 1 participant 1 message Apr 4, 2003

lore
Share & tools
lore
#0 lore raw

Tom,

Please apply the attached fix for KGDB. The ampersand should not have been removed on that line.

Mark
--

===== arch/ppc/kernel/ppc-stub.c 1.24 vs edited =====

arch/ppc/kernel/ppc-stub.c +1 -1
@@ -609,7 +609,7 @@
 	*ptr++ = hexchars[PC_REGNUM >> 4];
 	*ptr++ = hexchars[PC_REGNUM & 0xf];
 	*ptr++ = ':';
-	ptr = mem2hex((char *)regs->nip, ptr, 4);
+	ptr = mem2hex((char *)&regs->nip, ptr, 4);
 	*ptr++ = ';';
 	*ptr++ = hexchars[SP_REGNUM >> 4];
 	*ptr++ = hexchars[SP_REGNUM & 0xf];