All of lore.kernel.org
 help / color / mirror / Atom feed
* LO reg. gets trashed by kgdb in 2.4.x and older kernels
@ 2004-07-05 15:05 Sergei Shtylyov
  2004-07-08 11:43 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Sergei Shtylyov @ 2004-07-05 15:05 UTC (permalink / raw)
  To: linux-mips

Hi.

     I have discovered that the gdb-low.S trashes the LO reg. instead of 
restoring it. This was fixed for the 2.6 kernels but, as it seems, was left 
unfixed in the earlier ones (run into this on 2.4.18/2.4.20). Here's the patch
against the lastest 2.4.x revision of the file...

Index: linux/arch/mips/kernel/gdb-low.S
===================================================================
RCS file: /home/cvs/linux/arch/mips/kernel/gdb-low.S,v
retrieving revision 1.11.2.3
diff -a -u -r1.11.2.3 gdb-low.S
--- linux/arch/mips/kernel/gdb-low.S	20 Feb 2003 18:19:01 -0000	1.11.2.3
+++ linux/arch/mips/kernel/gdb-low.S	5 Jul 2004 14:48:08 -0000
@@ -283,7 +283,7 @@
  		lw	v0,GDB_FR_HI(sp)
  		lw	v1,GDB_FR_LO(sp)
  		mthi	v0
-		mtlo	v0
+		mtlo	v1
  		lw	ra,GDB_FR_REG31(sp)
  		lw	fp,GDB_FR_REG30(sp)
  		lw	gp,GDB_FR_REG28(sp)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: LO reg. gets trashed by kgdb in 2.4.x and older kernels
  2004-07-05 15:05 LO reg. gets trashed by kgdb in 2.4.x and older kernels Sergei Shtylyov
@ 2004-07-08 11:43 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2004-07-08 11:43 UTC (permalink / raw)
  To: Sergei Shtylyov; +Cc: linux-mips

On Mon, Jul 05, 2004 at 07:05:14PM +0400, Sergei Shtylyov wrote:

>     I have discovered that the gdb-low.S trashes the LO reg. instead of 
> restoring it. This was fixed for the 2.6 kernels but, as it seems, was left 
> unfixed in the earlier ones (run into this on 2.4.18/2.4.20). Here's the 
> patch
> against the lastest 2.4.x revision of the file...

Thanks.  This also was an ancient bug probably dating back to late '94 or
early '95 so all branches other than 2.6 were affected.

  Ralf

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-07-08 11:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-05 15:05 LO reg. gets trashed by kgdb in 2.4.x and older kernels Sergei Shtylyov
2004-07-08 11:43 ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.