exceptasm.h 1.06 KB
#define	EF_AT		  0
#define	EF_V0		  4
#define	EF_V1		  8
#define	EF_A0		 12
#define	EF_A1		 16
#define	EF_A2		 20
#define	EF_A3		 24
#define	EF_T0		 28
#define	EF_T1		 32
#define	EF_T2		 36
#define	EF_T3		 40
#define	EF_T4		 44
#define	EF_T5		 48
#define	EF_T6		 52
#define	EF_T7		 56
#define	EF_S0		 60
#define	EF_S1		 64
#define	EF_S2		 68
#define	EF_S3		 72
#define	EF_S4		 76
#define	EF_S5		 80
#define	EF_S6		 84
#define	EF_S7		 88
#define	EF_T8		 92
#define	EF_T9		 96
#define	EF_GP		100
#define	EF_SP		104
#define	EF_S8		108
#define	EF_RA		112
#define	EF_PAGEMASK	116
#define	EF_WIRED	120
#define	EF_ENTRYLO0	124
#define	EF_ENTRYLO1	128
#define	EF_CONTEXT	132
#define	EF_BADVADDR	136
#define	EF_ENTRYHI	140
#define	EF_COMPARE	144
#define	EF_SR		148
#define	EF_CAUSE	152
#define	EF_EPC		156
#define	EF_CONFIG	160

#define	IT_SOFTWARE1	 0
#define	IT_SOFTWARE2	 4
#define	IT_UNKNOWN1	 8
#define	IT_UNKNOWN2	12
#define	IT_RETRACE	16
#define	IT_DMA		20
#define	IT_BUSERROR	24
#define	IT_COUNTER	28

#define SPB_DEBUGADDR   0x80001010
#define DB_BPOFF	0x04
#define BRK_KERNELBP	1