QDNix
Quick’n’dirty *NIX
asm.h
1 #ifndef _MIPS_ASM_
2 # define _MIPS_ASM_ 1
3 
4 # include "arch.h"
5 
6 # ifdef __ASSEMBLER__
7 
8 /* coproc0 registers */
9 
10 # define C0_INDEX $0, 0
11 # define C0_ENTRYLO_0 $2, 0
12 # define C0_ENTRYLO_1 $3, 0
13 # define C0_CONTEXT $4, 0
14 # define C0_PAGEMASK $5, 0
15 # define C0_WIRED $6, 0
16 # define C0_ENTRYHI $10, 0
17 
18 # define C0_STATUS $12, 0
19 # define C0_INTCTL $12, 1
20 # define C0_CAUSE $13, 0
21 # define C0_EPC $14, 0
22 # define C0_PRID $15, 0
23 # define C0_EBASE $15, 1
24 # define C0_CONFIG $16, 0
25 # define C0_CONFIG1 $16, 1
26 # define C0_CONFIG2 $16, 2
27 # define C0_CONFIG3 $16, 3
28 # define C0_CONFIG4 $16, 4
29 
30 # endif /* __ASSEMBLER__ */
31 
32 #endif /* !_MIPS_ARCH_ */