1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
|
#*--------------------------------------------------------------------*#
#* Register Constants *#
#*--------------------------------------------------------------------*#
.set r0,0
.set r1,1
.set r2,2
.set r3,3
.set r4,4
.set r5,5
.set r6,6
.set r7,7
.set r8,8
.set r9,9
.set r10,10
.set r11,11
.set r12,12
.set r13,13
.set r14,14
.set r15,15
.set r16,16
.set r17,17
.set r18,18
.set r19,19
.set r20,20
.set r21,21
.set r22,22
.set r23,23
.set r24,24
.set r25,25
.set r26,26
.set r27,27
.set r28,28
.set r29,29
.set r30,30
.set r31,31
#*--------------------------------------------------------------------*#
#* CR Register Constants *#
#*--------------------------------------------------------------------*#
.set cr0,0
.set cr1,1
.set cr2,2
.set cr3,3
.set cr4,4
.set cr5,5
.set cr6,6
.set cr7,7
.set lt,0
.set gt,1
.set eq,2
.set so,3
#*--------------------------------------------------------------------*#
#* SR Register Constants *#
#*--------------------------------------------------------------------*#
.set sr0,0
.set sr1,1
.set sr2,2
.set sr3,3
.set sr4,4
.set sr5,5
.set sr6,6
.set sr7,7
.set sr8,8
.set sr9,9
.set sr10,10
.set sr11,11
.set sr12,12
.set sr13,13
.set sr14,14
.set sr15,15
#*--------------------------------------------------------------------*#
#* SPR Constants *#
#*--------------------------------------------------------------------*#
.set XER,1
.set LR,8
.set CTR,9
.set DSISR,18
.set DAR,19
.set DEC,22
.set SDR1,25
.set SRR0,26
.set SRR1,27
.set CFAR,28
.set TB,268
.set SPRG0,272
.set SPRG1,273
.set SPRG2,274
.set SPRG3,275
.set EAR,282
.set TBL,284
.set TBU,285
.set PVR,287
.set HSPRG0,304
.set HSPRG1,305
.set HDSISR,306
.set HDEC,310
.set HSRR0,314
.set HSRR1,315
.set HMER,336
.set HID0,1008
.set PIR, 1023
#*--------------------------------------------------------------------*#
#* Task offset Constants *#
#*--------------------------------------------------------------------*#
.set TASK_CPUPTR, 0
.set TASK_STACKPTR, TASK_CPUPTR+8
.set TASK_NIP, TASK_STACKPTR+8
.set TASK_GPR_0, TASK_NIP+8
.set TASK_GPR_1, TASK_GPR_0+8
.set TASK_GPR_2, TASK_GPR_1+8
.set TASK_GPR_3, TASK_GPR_2+8
.set TASK_GPR_4, TASK_GPR_3+8
.set TASK_GPR_5, TASK_GPR_4+8
.set TASK_GPR_6, TASK_GPR_5+8
.set TASK_GPR_7, TASK_GPR_6+8
.set TASK_GPR_8, TASK_GPR_7+8
.set TASK_GPR_9, TASK_GPR_8+8
.set TASK_GPR_10, TASK_GPR_9+8
.set TASK_GPR_11, TASK_GPR_10+8
.set TASK_GPR_12, TASK_GPR_11+8
.set TASK_GPR_13, TASK_GPR_12+8
.set TASK_GPR_14, TASK_GPR_13+8
.set TASK_GPR_15, TASK_GPR_14+8
.set TASK_GPR_16, TASK_GPR_15+8
.set TASK_GPR_17, TASK_GPR_16+8
.set TASK_GPR_18, TASK_GPR_17+8
.set TASK_GPR_19, TASK_GPR_18+8
.set TASK_GPR_20, TASK_GPR_19+8
.set TASK_GPR_21, TASK_GPR_20+8
.set TASK_GPR_22, TASK_GPR_21+8
.set TASK_GPR_23, TASK_GPR_22+8
.set TASK_GPR_24, TASK_GPR_23+8
.set TASK_GPR_25, TASK_GPR_24+8
.set TASK_GPR_26, TASK_GPR_25+8
.set TASK_GPR_27, TASK_GPR_26+8
.set TASK_GPR_28, TASK_GPR_27+8
.set TASK_GPR_29, TASK_GPR_28+8
.set TASK_GPR_30, TASK_GPR_29+8
.set TASK_GPR_31, TASK_GPR_30+8
.set TASK_LR, TASK_GPR_31+8
.set TASK_CR, TASK_LR+8
.set TASK_CTR, TASK_CR+8
.set TASK_XER, TASK_CTR+8
|