linux-mips
[Top] [All Lists]

R3000 and kgdb

To: linux-mips@oss.sgi.com
Subject: R3000 and kgdb
From: Alice Hennessy <ahennessy@mvista.com>
Date: Wed, 18 Jul 2001 19:58:47 -0700
Cc: ahennessy@mvista.com
Sender: owner-linux-mips@oss.sgi.com
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)


<Prev in Thread] Current Thread [Next in Thread>