patch-2.4.22 linux-2.4.22/include/asm-mips64/gdb-stub.h

Next file: linux-2.4.22/include/asm-mips64/gt64120/ev64120/ev64120.h
Previous file: linux-2.4.22/include/asm-mips64/fpu.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/include/asm-mips64/gdb-stub.h linux-2.4.22/include/asm-mips64/gdb-stub.h
@@ -26,111 +26,111 @@
 #define NUMREGS			90
 
 #define GDB_FR_REG0		(PTRSIZE*5)			/* 0 */
-#define GDB_FR_REG1		((GDB_FR_REG0) + 4)		/* 1 */
-#define GDB_FR_REG2		((GDB_FR_REG1) + 4)		/* 2 */
-#define GDB_FR_REG3		((GDB_FR_REG2) + 4)		/* 3 */
-#define GDB_FR_REG4		((GDB_FR_REG3) + 4)		/* 4 */
-#define GDB_FR_REG5		((GDB_FR_REG4) + 4)		/* 5 */
-#define GDB_FR_REG6		((GDB_FR_REG5) + 4)		/* 6 */
-#define GDB_FR_REG7		((GDB_FR_REG6) + 4)		/* 7 */
-#define GDB_FR_REG8		((GDB_FR_REG7) + 4)		/* 8 */
-#define GDB_FR_REG9	        ((GDB_FR_REG8) + 4)		/* 9 */
-#define GDB_FR_REG10		((GDB_FR_REG9) + 4)		/* 10 */
-#define GDB_FR_REG11		((GDB_FR_REG10) + 4)		/* 11 */
-#define GDB_FR_REG12		((GDB_FR_REG11) + 4)		/* 12 */
-#define GDB_FR_REG13		((GDB_FR_REG12) + 4)		/* 13 */
-#define GDB_FR_REG14		((GDB_FR_REG13) + 4)		/* 14 */
-#define GDB_FR_REG15		((GDB_FR_REG14) + 4)		/* 15 */
-#define GDB_FR_REG16		((GDB_FR_REG15) + 4)		/* 16 */
-#define GDB_FR_REG17		((GDB_FR_REG16) + 4)		/* 17 */
-#define GDB_FR_REG18		((GDB_FR_REG17) + 4)		/* 18 */
-#define GDB_FR_REG19		((GDB_FR_REG18) + 4)		/* 19 */
-#define GDB_FR_REG20		((GDB_FR_REG19) + 4)		/* 20 */
-#define GDB_FR_REG21		((GDB_FR_REG20) + 4)		/* 21 */
-#define GDB_FR_REG22		((GDB_FR_REG21) + 4)		/* 22 */
-#define GDB_FR_REG23		((GDB_FR_REG22) + 4)		/* 23 */
-#define GDB_FR_REG24		((GDB_FR_REG23) + 4)		/* 24 */
-#define GDB_FR_REG25		((GDB_FR_REG24) + 4)		/* 25 */
-#define GDB_FR_REG26		((GDB_FR_REG25) + 4)		/* 26 */
-#define GDB_FR_REG27		((GDB_FR_REG26) + 4)		/* 27 */
-#define GDB_FR_REG28		((GDB_FR_REG27) + 4)		/* 28 */
-#define GDB_FR_REG29		((GDB_FR_REG28) + 4)		/* 29 */
-#define GDB_FR_REG30		((GDB_FR_REG29) + 4)		/* 30 */
-#define GDB_FR_REG31		((GDB_FR_REG30) + 4)		/* 31 */
+#define GDB_FR_REG1		((GDB_FR_REG0) + 8)		/* 1 */
+#define GDB_FR_REG2		((GDB_FR_REG1) + 8)		/* 2 */
+#define GDB_FR_REG3		((GDB_FR_REG2) + 8)		/* 3 */
+#define GDB_FR_REG4		((GDB_FR_REG3) + 8)		/* 4 */
+#define GDB_FR_REG5		((GDB_FR_REG4) + 8)		/* 5 */
+#define GDB_FR_REG6		((GDB_FR_REG5) + 8)		/* 6 */
+#define GDB_FR_REG7		((GDB_FR_REG6) + 8)		/* 7 */
+#define GDB_FR_REG8		((GDB_FR_REG7) + 8)		/* 8 */
+#define GDB_FR_REG9	        ((GDB_FR_REG8) + 8)		/* 9 */
+#define GDB_FR_REG10		((GDB_FR_REG9) + 8)		/* 10 */
+#define GDB_FR_REG11		((GDB_FR_REG10) + 8)		/* 11 */
+#define GDB_FR_REG12		((GDB_FR_REG11) + 8)		/* 12 */
+#define GDB_FR_REG13		((GDB_FR_REG12) + 8)		/* 13 */
+#define GDB_FR_REG14		((GDB_FR_REG13) + 8)		/* 14 */
+#define GDB_FR_REG15		((GDB_FR_REG14) + 8)		/* 15 */
+#define GDB_FR_REG16		((GDB_FR_REG15) + 8)		/* 16 */
+#define GDB_FR_REG17		((GDB_FR_REG16) + 8)		/* 17 */
+#define GDB_FR_REG18		((GDB_FR_REG17) + 8)		/* 18 */
+#define GDB_FR_REG19		((GDB_FR_REG18) + 8)		/* 19 */
+#define GDB_FR_REG20		((GDB_FR_REG19) + 8)		/* 20 */
+#define GDB_FR_REG21		((GDB_FR_REG20) + 8)		/* 21 */
+#define GDB_FR_REG22		((GDB_FR_REG21) + 8)		/* 22 */
+#define GDB_FR_REG23		((GDB_FR_REG22) + 8)		/* 23 */
+#define GDB_FR_REG24		((GDB_FR_REG23) + 8)		/* 24 */
+#define GDB_FR_REG25		((GDB_FR_REG24) + 8)		/* 25 */
+#define GDB_FR_REG26		((GDB_FR_REG25) + 8)		/* 26 */
+#define GDB_FR_REG27		((GDB_FR_REG26) + 8)		/* 27 */
+#define GDB_FR_REG28		((GDB_FR_REG27) + 8)		/* 28 */
+#define GDB_FR_REG29		((GDB_FR_REG28) + 8)		/* 29 */
+#define GDB_FR_REG30		((GDB_FR_REG29) + 8)		/* 30 */
+#define GDB_FR_REG31		((GDB_FR_REG30) + 8)		/* 31 */
 
 /*
  * Saved special registers
  */
-#define GDB_FR_STATUS		((GDB_FR_REG31) + 4)		/* 32 */
-#define GDB_FR_LO		((GDB_FR_STATUS) + 4)		/* 33 */
-#define GDB_FR_HI		((GDB_FR_LO) + 4)		/* 34 */
-#define GDB_FR_BADVADDR		((GDB_FR_HI) + 4)		/* 35 */
-#define GDB_FR_CAUSE		((GDB_FR_BADVADDR) + 4)		/* 36 */
-#define GDB_FR_EPC		((GDB_FR_CAUSE) + 4)		/* 37 */
+#define GDB_FR_STATUS		((GDB_FR_REG31) + 8)		/* 32 */
+#define GDB_FR_LO		((GDB_FR_STATUS) + 8)		/* 33 */
+#define GDB_FR_HI		((GDB_FR_LO) + 8)		/* 34 */
+#define GDB_FR_BADVADDR		((GDB_FR_HI) + 8)		/* 35 */
+#define GDB_FR_CAUSE		((GDB_FR_BADVADDR) + 8)		/* 36 */
+#define GDB_FR_EPC		((GDB_FR_CAUSE) + 8)		/* 37 */
 
 /*
  * Saved floating point registers
  */
-#define GDB_FR_FPR0		((GDB_FR_EPC) + 4)		/* 38 */
-#define GDB_FR_FPR1		((GDB_FR_FPR0) + 4)		/* 39 */
-#define GDB_FR_FPR2		((GDB_FR_FPR1) + 4)		/* 40 */
-#define GDB_FR_FPR3		((GDB_FR_FPR2) + 4)		/* 41 */
-#define GDB_FR_FPR4		((GDB_FR_FPR3) + 4)		/* 42 */
-#define GDB_FR_FPR5		((GDB_FR_FPR4) + 4)		/* 43 */
-#define GDB_FR_FPR6		((GDB_FR_FPR5) + 4)		/* 44 */
-#define GDB_FR_FPR7		((GDB_FR_FPR6) + 4)		/* 45 */
-#define GDB_FR_FPR8		((GDB_FR_FPR7) + 4)		/* 46 */
-#define GDB_FR_FPR9		((GDB_FR_FPR8) + 4)		/* 47 */
-#define GDB_FR_FPR10		((GDB_FR_FPR9) + 4)		/* 48 */
-#define GDB_FR_FPR11		((GDB_FR_FPR10) + 4)		/* 49 */
-#define GDB_FR_FPR12		((GDB_FR_FPR11) + 4)		/* 50 */
-#define GDB_FR_FPR13		((GDB_FR_FPR12) + 4)		/* 51 */
-#define GDB_FR_FPR14		((GDB_FR_FPR13) + 4)		/* 52 */
-#define GDB_FR_FPR15		((GDB_FR_FPR14) + 4)		/* 53 */
-#define GDB_FR_FPR16		((GDB_FR_FPR15) + 4)		/* 54 */
-#define GDB_FR_FPR17		((GDB_FR_FPR16) + 4)		/* 55 */
-#define GDB_FR_FPR18		((GDB_FR_FPR17) + 4)		/* 56 */
-#define GDB_FR_FPR19		((GDB_FR_FPR18) + 4)		/* 57 */
-#define GDB_FR_FPR20		((GDB_FR_FPR19) + 4)		/* 58 */
-#define GDB_FR_FPR21		((GDB_FR_FPR20) + 4)		/* 59 */
-#define GDB_FR_FPR22		((GDB_FR_FPR21) + 4)		/* 60 */
-#define GDB_FR_FPR23		((GDB_FR_FPR22) + 4)		/* 61 */
-#define GDB_FR_FPR24		((GDB_FR_FPR23) + 4)		/* 62 */
-#define GDB_FR_FPR25		((GDB_FR_FPR24) + 4)		/* 63 */
-#define GDB_FR_FPR26		((GDB_FR_FPR25) + 4)		/* 64 */
-#define GDB_FR_FPR27		((GDB_FR_FPR26) + 4)		/* 65 */
-#define GDB_FR_FPR28		((GDB_FR_FPR27) + 4)		/* 66 */
-#define GDB_FR_FPR29		((GDB_FR_FPR28) + 4)		/* 67 */
-#define GDB_FR_FPR30		((GDB_FR_FPR29) + 4)		/* 68 */
-#define GDB_FR_FPR31		((GDB_FR_FPR30) + 4)		/* 69 */
-
-#define GDB_FR_FSR		((GDB_FR_FPR31) + 4)		/* 70 */
-#define GDB_FR_FIR		((GDB_FR_FSR) + 4)		/* 71 */
-#define GDB_FR_FRP		((GDB_FR_FIR) + 4)		/* 72 */
+#define GDB_FR_FPR0		((GDB_FR_EPC) + 8)		/* 38 */
+#define GDB_FR_FPR1		((GDB_FR_FPR0) + 8)		/* 39 */
+#define GDB_FR_FPR2		((GDB_FR_FPR1) + 8)		/* 40 */
+#define GDB_FR_FPR3		((GDB_FR_FPR2) + 8)		/* 41 */
+#define GDB_FR_FPR4		((GDB_FR_FPR3) + 8)		/* 42 */
+#define GDB_FR_FPR5		((GDB_FR_FPR4) + 8)		/* 43 */
+#define GDB_FR_FPR6		((GDB_FR_FPR5) + 8)		/* 44 */
+#define GDB_FR_FPR7		((GDB_FR_FPR6) + 8)		/* 45 */
+#define GDB_FR_FPR8		((GDB_FR_FPR7) + 8)		/* 46 */
+#define GDB_FR_FPR9		((GDB_FR_FPR8) + 8)		/* 47 */
+#define GDB_FR_FPR10		((GDB_FR_FPR9) + 8)		/* 48 */
+#define GDB_FR_FPR11		((GDB_FR_FPR10) + 8)		/* 49 */
+#define GDB_FR_FPR12		((GDB_FR_FPR11) + 8)		/* 50 */
+#define GDB_FR_FPR13		((GDB_FR_FPR12) + 8)		/* 51 */
+#define GDB_FR_FPR14		((GDB_FR_FPR13) + 8)		/* 52 */
+#define GDB_FR_FPR15		((GDB_FR_FPR14) + 8)		/* 53 */
+#define GDB_FR_FPR16		((GDB_FR_FPR15) + 8)		/* 54 */
+#define GDB_FR_FPR17		((GDB_FR_FPR16) + 8)		/* 55 */
+#define GDB_FR_FPR18		((GDB_FR_FPR17) + 8)		/* 56 */
+#define GDB_FR_FPR19		((GDB_FR_FPR18) + 8)		/* 57 */
+#define GDB_FR_FPR20		((GDB_FR_FPR19) + 8)		/* 58 */
+#define GDB_FR_FPR21		((GDB_FR_FPR20) + 8)		/* 59 */
+#define GDB_FR_FPR22		((GDB_FR_FPR21) + 8)		/* 60 */
+#define GDB_FR_FPR23		((GDB_FR_FPR22) + 8)		/* 61 */
+#define GDB_FR_FPR24		((GDB_FR_FPR23) + 8)		/* 62 */
+#define GDB_FR_FPR25		((GDB_FR_FPR24) + 8)		/* 63 */
+#define GDB_FR_FPR26		((GDB_FR_FPR25) + 8)		/* 64 */
+#define GDB_FR_FPR27		((GDB_FR_FPR26) + 8)		/* 65 */
+#define GDB_FR_FPR28		((GDB_FR_FPR27) + 8)		/* 66 */
+#define GDB_FR_FPR29		((GDB_FR_FPR28) + 8)		/* 67 */
+#define GDB_FR_FPR30		((GDB_FR_FPR29) + 8)		/* 68 */
+#define GDB_FR_FPR31		((GDB_FR_FPR30) + 8)		/* 69 */
+
+#define GDB_FR_FSR		((GDB_FR_FPR31) + 8)		/* 70 */
+#define GDB_FR_FIR		((GDB_FR_FSR) + 8)		/* 71 */
+#define GDB_FR_FRP		((GDB_FR_FIR) + 8)		/* 72 */
 
-#define GDB_FR_DUMMY		((GDB_FR_FRP) + 4)		/* 73, unused ??? */
+#define GDB_FR_DUMMY		((GDB_FR_FRP) + 8)		/* 73, unused ??? */
 
 /*
  * Again, CP0 registers
  */
-#define GDB_FR_CP0_INDEX	((GDB_FR_DUMMY) + 4)		/* 74 */
-#define GDB_FR_CP0_RANDOM	((GDB_FR_CP0_INDEX) + 4)	/* 75 */
-#define GDB_FR_CP0_ENTRYLO0	((GDB_FR_CP0_RANDOM) + 4)	/* 76 */
-#define GDB_FR_CP0_ENTRYLO1	((GDB_FR_CP0_ENTRYLO0) + 4)	/* 77 */
-#define GDB_FR_CP0_CONTEXT	((GDB_FR_CP0_ENTRYLO1) + 4)	/* 78 */
-#define GDB_FR_CP0_PAGEMASK	((GDB_FR_CP0_CONTEXT) + 4)	/* 79 */
-#define GDB_FR_CP0_WIRED	((GDB_FR_CP0_PAGEMASK) + 4)	/* 80 */
-#define GDB_FR_CP0_REG7		((GDB_FR_CP0_WIRED) + 4)	/* 81 */
-#define GDB_FR_CP0_REG8		((GDB_FR_CP0_REG7) + 4)		/* 82 */
-#define GDB_FR_CP0_REG9		((GDB_FR_CP0_REG8) + 4)		/* 83 */
-#define GDB_FR_CP0_ENTRYHI	((GDB_FR_CP0_REG9) + 4)		/* 84 */
-#define GDB_FR_CP0_REG11	((GDB_FR_CP0_ENTRYHI) + 4)	/* 85 */
-#define GDB_FR_CP0_REG12	((GDB_FR_CP0_REG11) + 4)	/* 86 */
-#define GDB_FR_CP0_REG13	((GDB_FR_CP0_REG12) + 4)	/* 87 */
-#define GDB_FR_CP0_REG14	((GDB_FR_CP0_REG13) + 4)	/* 88 */
-#define GDB_FR_CP0_PRID		((GDB_FR_CP0_REG14) + 4)	/* 89 */
+#define GDB_FR_CP0_INDEX	((GDB_FR_DUMMY) + 8)		/* 74 */
+#define GDB_FR_CP0_RANDOM	((GDB_FR_CP0_INDEX) + 8)	/* 75 */
+#define GDB_FR_CP0_ENTRYLO0	((GDB_FR_CP0_RANDOM) + 8)	/* 76 */
+#define GDB_FR_CP0_ENTRYLO1	((GDB_FR_CP0_ENTRYLO0) + 8)	/* 77 */
+#define GDB_FR_CP0_CONTEXT	((GDB_FR_CP0_ENTRYLO1) + 8)	/* 78 */
+#define GDB_FR_CP0_PAGEMASK	((GDB_FR_CP0_CONTEXT) + 8)	/* 79 */
+#define GDB_FR_CP0_WIRED	((GDB_FR_CP0_PAGEMASK) + 8)	/* 80 */
+#define GDB_FR_CP0_REG7		((GDB_FR_CP0_WIRED) + 8)	/* 81 */
+#define GDB_FR_CP0_REG8		((GDB_FR_CP0_REG7) + 8)		/* 82 */
+#define GDB_FR_CP0_REG9		((GDB_FR_CP0_REG8) + 8)		/* 83 */
+#define GDB_FR_CP0_ENTRYHI	((GDB_FR_CP0_REG9) + 8)		/* 84 */
+#define GDB_FR_CP0_REG11	((GDB_FR_CP0_ENTRYHI) + 8)	/* 85 */
+#define GDB_FR_CP0_REG12	((GDB_FR_CP0_REG11) + 8)	/* 86 */
+#define GDB_FR_CP0_REG13	((GDB_FR_CP0_REG12) + 8)	/* 87 */
+#define GDB_FR_CP0_REG14	((GDB_FR_CP0_REG13) + 8)	/* 88 */
+#define GDB_FR_CP0_PRID		((GDB_FR_CP0_REG14) + 8)	/* 89 */
 
-#define GDB_FR_SIZE		((((GDB_FR_CP0_PRID) + 4) + (PTRSIZE-1)) & ~(PTRSIZE-1))
+#define GDB_FR_SIZE		((((GDB_FR_CP0_PRID) + 8) + (PTRSIZE-1)) & ~(PTRSIZE-1))
 
 #ifndef __ASSEMBLY__
 
@@ -207,6 +207,7 @@
  */
 
 void set_debug_traps(void);
+void set_async_breakpoint(unsigned long *epc);
 
 #endif /* !__ASSEMBLY__ */
 #endif /* __ASM_MIPS_GDB_STUB_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)