1 #define KERNSIZE 134217728
2 #define KERNBASE 0
3 #define LOAD_ADDR 0x4000
4 #define C_STACK 96
5 #define SUN4C_SEGSZ (1 << 18)
6 #define NBPG 4096
7 #define UPAGES 2
8 #define PROM_BASE -1568768
9 #define PAGESHIFT_SUN4C 12
10 #define ASI_CONTROL 0x02
11 #define ASI_SEGMAP 0x03
12 #define ASI_PTE 0x04
13 #define AC_CONTEXT 0x30000000
14 #define USRSTACK KERNBASE
15 #define IE_REG_PTE_PG -201326592
16 #define INT_ENABLE_REG_PHYSADR 0xf5000000
17 #define IE_ALLIE 0x01
18
19
20
21 #define PSR_IMPL 0xf0000000
22 #define PSR_VER 0x0f000000
23 #define PSR_ICC 0x00f00000
24 #define PSR_N 0x00800000
25 #define PSR_Z 0x00400000
26 #define PSR_O 0x00200000
27 #define PSR_C 0x00100000
28 #define PSR_EC 0x00002000
29 #define PSR_EF 0x00001000
30 #define PSR_PIL 0x00000f00
31 #define PSR_S 0x00000080
32 #define PSR_PS 0x00000040
33 #define PSR_ET 0x00000020
34 #define PSR_CWP 0x0000001f
35
36 #define PCB_WIM 20
37
38 #define HZ 100
39
40
41
42
43
44 #define TASK_WIM 0x8
45 #define TASK_UW 0x16
46 #define TASK_SIZE 8192
47 #define TASK_RW 0x32
48 #define TASK_NSAVED 0x40
49 #define PG_VSHIFT 0x16
50 #define PG_PROTSHIFT 0x6
51 #define PG_PROTUWRITE 0x4