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