All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@dev.rtsoft.ru>
To: linux-mips@ftp.linux-mips.org
Subject: LO reg. gets trashed by kgdb in 2.4.x and older kernels
Date: Mon, 05 Jul 2004 19:05:14 +0400	[thread overview]
Message-ID: <40E96E2A.2000403@dev.rtsoft.ru> (raw)

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)

             reply	other threads:[~2004-07-05 15:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-05 15:05 Sergei Shtylyov [this message]
2004-07-08 11:43 ` LO reg. gets trashed by kgdb in 2.4.x and older kernels Ralf Baechle

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40E96E2A.2000403@dev.rtsoft.ru \
    --to=sshtylyov@dev.rtsoft.ru \
    --cc=linux-mips@ftp.linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.