patch-2.4.22 linux-2.4.22/arch/mips/kernel/gdb-low.S
Next file: linux-2.4.22/arch/mips/kernel/gdb-stub.c
Previous file: linux-2.4.22/arch/mips/kernel/entry.S
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
2003-08-25 04:44:40.000000000 -0700
- Orig file:
linux-2.4.21/arch/mips/kernel/gdb-low.S
- Orig date:
2002-11-28 15:53:10.000000000 -0800
diff -urN linux-2.4.21/arch/mips/kernel/gdb-low.S linux-2.4.22/arch/mips/kernel/gdb-low.S
@@ -14,6 +14,16 @@
#include <asm/gdb-stub.h>
/*
+ * [jsun] We reserves about 2x GDB_FR_SIZE in stack. The lower (addressed)
+ * part is used to store registers and passed to exception handler.
+ * The upper part is reserved for "call func" feature where gdb client
+ * saves some of the regs, setups call frame and passes args.
+ *
+ * A trace shows about 200 bytes are used to store about half of all regs.
+ * The rest should be big enough for frame setup and passing args.
+ */
+
+/*
* The low level trap handler
*/
.align 5
@@ -38,7 +48,7 @@
nop
1:
move k0,sp
- subu sp,k1,GDB_FR_SIZE
+ subu sp,k1,GDB_FR_SIZE*2 # see comment above
sw k0,GDB_FR_REG29(sp)
sw v0,GDB_FR_REG2(sp)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)