1
2
3
4 #define STATE 0
5 #define COUNTER 4
6 #define BLOCKED 16
7 #define SIGNAL 12
8 #define KERNEL_STACK_PAGE 88
9 #define TSS 504
10 #define KSP 0
11 #define LAST_PC 72
12 #define MMU_SEG0 8
13 #define MMU_SEG1 12
14 #define MMU_SEG2 16
15 #define MMU_SEG3 20
16 #define MMU_SEG4 24
17 #define MMU_SEG5 28
18 #define MMU_SEG6 32
19 #define MMU_SEG7 36
20 #define MMU_SEG8 40
21 #define MMU_SEG9 44
22 #define MMU_SEG10 48
23 #define MMU_SEG11 52
24 #define MMU_SEG12 56
25 #define MMU_SEG13 60
26 #define MMU_SEG14 64
27 #define MMU_SEG15 68
28 #define TSS_FPR0 80
29 #define TSS_FPR1 88
30 #define TSS_FPR2 96
31 #define TSS_FPR3 104
32 #define TSS_FPR4 112
33 #define TSS_FPR5 120
34 #define TSS_FPR6 128
35 #define TSS_FPR7 136
36 #define TSS_FPR8 144
37 #define TSS_FPR9 152
38 #define TSS_FPR10 160
39 #define TSS_FPR11 168
40 #define TSS_FPR12 176
41 #define TSS_FPR13 184
42 #define TSS_FPR14 192
43 #define TSS_FPR15 200
44 #define TSS_FPR16 208
45 #define TSS_FPR17 216
46 #define TSS_FPR18 224
47 #define TSS_FPR19 232
48 #define TSS_FPR20 240
49 #define TSS_FPR21 248
50 #define TSS_FPR22 256
51 #define TSS_FPR23 264
52 #define TSS_FPR24 272
53 #define TSS_FPR25 280
54 #define TSS_FPR26 288
55 #define TSS_FPR27 296
56 #define TSS_FPR28 304
57 #define TSS_FPR29 312
58 #define TSS_FPR30 320
59 #define TSS_FPR31 328
60 #define INT_FRAME_SIZE 384
61 #define GPR0 56
62 #define GPR1 60
63 #define GPR2 64
64 #define GPR3 68
65 #define GPR4 72
66 #define GPR5 76
67 #define GPR6 80
68 #define GPR7 84
69 #define GPR8 88
70 #define GPR9 92
71 #define GPR10 96
72 #define GPR11 100
73 #define GPR12 104
74 #define GPR13 108
75 #define GPR14 112
76 #define GPR15 116
77 #define GPR16 120
78 #define GPR17 124
79 #define GPR18 128
80 #define GPR19 132
81 #define GPR20 136
82 #define GPR21 140
83 #define GPR22 144
84 #define GPR23 148
85 #define GPR24 152
86 #define GPR25 156
87 #define GPR26 160
88 #define GPR27 164
89 #define GPR28 168
90 #define GPR29 172
91 #define GPR30 176
92 #define GPR31 180
93 #define FPR0 248
94 #define FPR1 256
95 #define FPR2 264
96 #define FPR3 272
97 #define FPCSR 280
98 #define _NIP 184
99 #define _MSR 188
100 #define _CTR 192
101 #define _LINK 196
102 #define _CCR 200
103 #define _XER 204
104 #define _DAR 208
105 #define _DSISR 212
106 #define _HASH1 216
107 #define _HASH2 220
108 #define _IMISS 224
109 #define _DMISS 228
110 #define _ICMP 232
111 #define _DCMP 236
112 #define ORIG_GPR3 240
113 #define RESULT 244
114 #define TRAP 288
115 #define MARKER 292