paul@184 | 1 | #ifndef __MIPS_H__ |
paul@184 | 2 | #define __MIPS_H__ |
paul@184 | 3 | |
paul@184 | 4 | #define CP0_INDEX $0 |
paul@184 | 5 | #define CP0_ENTRYLO0 $2 |
paul@184 | 6 | #define CP0_ENTRYLO1 $3 |
paul@184 | 7 | #define CP0_CONTEXT $4 |
paul@184 | 8 | #define CP0_PAGEMASK $5 |
paul@184 | 9 | #define CP0_WIRED $6 |
paul@184 | 10 | #define CP0_ENTRYHI $10 |
paul@184 | 11 | #define CP0_STATUS $12 |
paul@184 | 12 | #define CP0_CAUSE $13 |
paul@184 | 13 | #define CP0_EPC $14 |
paul@184 | 14 | #define CP0_CONFIG $16 |
paul@184 | 15 | #define CP0_WATCHLO $18 |
paul@184 | 16 | #define CP0_TAGLO $28 |
paul@184 | 17 | #define CP0_TAGHI $29 |
paul@184 | 18 | |
paul@188 | 19 | #define STATUS_BEV 0x00400000 |
paul@190 | 20 | #define STATUS_IRQ 0x0000fc00 |
paul@190 | 21 | #define STATUS_UM 0x00000010 |
paul@190 | 22 | #define STATUS_ERL 0x00000004 |
paul@190 | 23 | #define STATUS_EXL 0x00000002 |
paul@190 | 24 | #define STATUS_IE 0x00000001 |
paul@188 | 25 | |
paul@188 | 26 | #define CAUSE_IV 0x00800000 |
paul@188 | 27 | |
paul@184 | 28 | #endif /* __MIPS_H__ */ |