patch-2.4.19 linux-2.4.19/arch/mips/kernel/gdb-low.S
Next file: linux-2.4.19/arch/mips/kernel/gdb-stub.c
Previous file: linux-2.4.19/arch/mips/kernel/entry.S
Back to the patch index
Back to the overall index
- Lines: 53
- Date:
Fri Aug 2 17:39:43 2002
- Orig file:
linux-2.4.18/arch/mips/kernel/gdb-low.S
- Orig date:
Sun Sep 9 10:43:01 2001
diff -urN linux-2.4.18/arch/mips/kernel/gdb-low.S linux-2.4.19/arch/mips/kernel/gdb-low.S
@@ -145,9 +145,9 @@
* FPU control registers
*/
- mfc1 v0,CP1_STATUS
+ cfc1 v0,CP1_STATUS
sw v0,GDB_FR_FSR(sp)
- mfc1 v0,CP1_REVISION
+ cfc1 v0,CP1_REVISION
sw v0,GDB_FR_FIR(sp)
/*
@@ -304,7 +304,7 @@
lw v1,GDB_FR_REG3(sp)
lw v0,GDB_FR_REG2(sp)
lw $1,GDB_FR_REG1(sp)
-#ifdef CONFIG_CPU_R3000
+#if defined(CONFIG_CPU_R3000) || defined(CONFIG_CPU_TX39XX)
lw k0, GDB_FR_EPC(sp)
lw sp, GDB_FR_REG29(sp) /* Deallocate stack */
jr k0
@@ -321,11 +321,7 @@
END(trap_low)
LEAF(kgdb_read_byte)
- .set push
- .set noreorder
- .set nomacro
4: lb t0, (a0)
- .set pop
sb t0, (a1)
li v0, 0
jr ra
@@ -335,11 +331,7 @@
END(kgdb_read_byte)
LEAF(kgdb_write_byte)
- .set push
- .set noreorder
- .set nomacro
5: sb a0, (a1)
- .set pop
li v0, 0
jr ra
.section __ex_table,"a"
@@ -349,6 +341,7 @@
.type kgdbfault@function
.ent kgdbfault
+
kgdbfault: li v0, -EFAULT
jr ra
.end kgdbfault
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)