patch-1.3.71 linux/include/asm-sparc/kgdb.h
Next file: linux/include/asm-sparc/memreg.h
Previous file: linux/include/asm-sparc/kdebug.h
Back to the patch index
Back to the overall index
- Lines: 70
- Date:
Mon Mar 4 08:50:01 1996
- Orig file:
v1.3.70/linux/include/asm-sparc/kgdb.h
- Orig date:
Sat Nov 25 19:04:49 1995
diff -u --recursive --new-file v1.3.70/linux/include/asm-sparc/kgdb.h linux/include/asm-sparc/kgdb.h
@@ -1,4 +1,4 @@
-/* $Id: kgdb.h,v 1.6 1995/11/25 02:31:57 davem Exp $
+/* $Id: kgdb.h,v 1.7 1995/11/27 02:43:18 davem Exp $
* kgdb.h: Defines and declarations for serial line source level
* remote debugging of the Linux kernel using gdb.
*
@@ -52,39 +52,39 @@
#define KGDB_NPC 0x114
#define SAVE_KGDB_GLOBALS(reg) \
- std %g0, [%reg + STACKFRAME_SZ + KGDB_G0]; \
- std %g2, [%reg + STACKFRAME_SZ + KGDB_G2]; \
- std %g4, [%reg + STACKFRAME_SZ + KGDB_G4]; \
- std %g6, [%reg + STACKFRAME_SZ + KGDB_G6];
+ std %g0, [%reg + REGWIN_SZ + KGDB_G0]; \
+ std %g2, [%reg + REGWIN_SZ + KGDB_G2]; \
+ std %g4, [%reg + REGWIN_SZ + KGDB_G4]; \
+ std %g6, [%reg + REGWIN_SZ + KGDB_G6];
#define SAVE_KGDB_INS(reg) \
- std %i0, [%reg + STACKFRAME_SZ + KGDB_I0]; \
- std %i2, [%reg + STACKFRAME_SZ + KGDB_I2]; \
- std %i4, [%reg + STACKFRAME_SZ + KGDB_I4]; \
- std %i6, [%reg + STACKFRAME_SZ + KGDB_I6];
+ std %i0, [%reg + REGWIN_SZ + KGDB_I0]; \
+ std %i2, [%reg + REGWIN_SZ + KGDB_I2]; \
+ std %i4, [%reg + REGWIN_SZ + KGDB_I4]; \
+ std %i6, [%reg + REGWIN_SZ + KGDB_I6];
#define SAVE_KGDB_SREGS(reg, reg_y, reg_psr, reg_wim, reg_tbr, reg_pc, reg_npc) \
- st %reg_y, [%reg + STACKFRAME_SZ + KGDB_Y]; \
- st %reg_psr, [%reg + STACKFRAME_SZ + KGDB_PSR]; \
- st %reg_wim, [%reg + STACKFRAME_SZ + KGDB_WIM]; \
- st %reg_tbr, [%reg + STACKFRAME_SZ + KGDB_TBR]; \
- st %reg_pc, [%reg + STACKFRAME_SZ + KGDB_PC]; \
- st %reg_npc, [%reg + STACKFRAME_SZ + KGDB_NPC];
+ st %reg_y, [%reg + REGWIN_SZ + KGDB_Y]; \
+ st %reg_psr, [%reg + REGWIN_SZ + KGDB_PSR]; \
+ st %reg_wim, [%reg + REGWIN_SZ + KGDB_WIM]; \
+ st %reg_tbr, [%reg + REGWIN_SZ + KGDB_TBR]; \
+ st %reg_pc, [%reg + REGWIN_SZ + KGDB_PC]; \
+ st %reg_npc, [%reg + REGWIN_SZ + KGDB_NPC];
#define LOAD_KGDB_GLOBALS(reg) \
- ld [%reg + STACKFRAME_SZ + KGDB_G1], %g1; \
- ldd [%reg + STACKFRAME_SZ + KGDB_G2], %g2; \
- ldd [%reg + STACKFRAME_SZ + KGDB_G4], %g4; \
- ldd [%reg + STACKFRAME_SZ + KGDB_G6], %g6;
+ ld [%reg + REGWIN_SZ + KGDB_G1], %g1; \
+ ldd [%reg + REGWIN_SZ + KGDB_G2], %g2; \
+ ldd [%reg + REGWIN_SZ + KGDB_G4], %g4; \
+ ldd [%reg + REGWIN_SZ + KGDB_G6], %g6;
#define LOAD_KGDB_INS(reg) \
- ldd [%reg + STACKFRAME_SZ + KGDB_I0], %i0; \
- ldd [%reg + STACKFRAME_SZ + KGDB_I2], %i2; \
- ldd [%reg + STACKFRAME_SZ + KGDB_I4], %i4; \
- ldd [%reg + STACKFRAME_SZ + KGDB_I6], %i6;
+ ldd [%reg + REGWIN_SZ + KGDB_I0], %i0; \
+ ldd [%reg + REGWIN_SZ + KGDB_I2], %i2; \
+ ldd [%reg + REGWIN_SZ + KGDB_I4], %i4; \
+ ldd [%reg + REGWIN_SZ + KGDB_I6], %i6;
#define LOAD_KGDB_SREGS(reg, reg_y_and_psr, reg_pc_and_npc) \
- ldd [%reg + STACKFRAME_SZ + KGDB_Y], %reg_y_and_psr; \
- ldd [%reg + STACKFRAME_SZ + KGDB_PC], %reg_pc_and_npc;
+ ldd [%reg + REGWIN_SZ + KGDB_Y], %reg_y_and_psr; \
+ ldd [%reg + REGWIN_SZ + KGDB_PC], %reg_pc_and_npc;
#endif /* !(_SPARC_KGDB_H) */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this