All of lore.kernel.org
 help / color / mirror / Atom feed
* R3000 and kgdb
@ 2001-07-19  2:58 Alice Hennessy
  2001-07-19 10:35 ` Ralf Baechle
  0 siblings, 1 reply; 2+ messages in thread
From: Alice Hennessy @ 2001-07-19  2:58 UTC (permalink / raw)
  To: linux-mips; +Cc: ahennessy

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)

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

* Re: R3000 and kgdb
  2001-07-19  2:58 R3000 and kgdb Alice Hennessy
@ 2001-07-19 10:35 ` Ralf Baechle
  0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2001-07-19 10:35 UTC (permalink / raw)
  To: Alice Hennessy; +Cc: linux-mips

Alice,

On Wed, Jul 18, 2001 at 07:58:47PM -0700, Alice Hennessy wrote:

> 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.

Your patch looks good, so I've applied it.

In the future please do not send patches using Netscape; it garbles patches
such that they can only applied manually which would force me to refuse any
larger patch.  Some MUA like Mutt or Pine won't trash patches.

  Ralf

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

end of thread, other threads:[~2001-07-19 10:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-19  2:58 R3000 and kgdb Alice Hennessy
2001-07-19 10:35 ` 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.