From: Alice Hennessy <ahennessy@mvista.com>
To: linux-mips@oss.sgi.com
Cc: ahennessy@mvista.com
Subject: R3000 and kgdb
Date: Wed, 18 Jul 2001 19:58:47 -0700 [thread overview]
Message-ID: <3B564CE7.2CF85A65@mvista.com> (raw)
Has anyone used kgdb with an R3000 cpu? There was an obvious problem
in
gdb-low.S (patch below) but I still cannot get kgdb to work.
Alice
--- arch/mips/kernel/gdb-low.S.orig Wed Jul 18 18:47:57 2001
+++ arch/mips/kernel/gdb-low.S Wed Jul 18 17:52:21 2001
@@ -302,11 +302,18 @@
lw v1,GDB_FR_REG3(sp)
lw v0,GDB_FR_REG2(sp)
lw $1,GDB_FR_REG1(sp)
+#if defined(CONFIG_CPU_R3000)
+ lw k0, GDB_FR_EPC(sp)
+ lw sp,GDB_FR_REG29(sp) /* Deallocate
stack */
+ jr k0
+ rfe
+#else
lw sp,GDB_FR_REG29(sp) /* Deallocate
stack */
.set mips3
eret
.set mips0
+#endif
.set at
.set reorder
END(trap_low)
next reply other threads:[~2001-07-19 2:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-19 2:58 Alice Hennessy [this message]
2001-07-19 10:35 ` R3000 and kgdb 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=3B564CE7.2CF85A65@mvista.com \
--to=ahennessy@mvista.com \
--cc=linux-mips@oss.sgi.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox