Subversion Repositories HelenOS-historic

Rev

Rev 1267 | Rev 1288 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1267 Rev 1277
Line 30... Line 30...
30
 
30
 
31
.text
31
.text
32
 
32
 
33
.global userspace_asm
33
.global userspace_asm
34
.global iret
34
.global iret
-
 
35
.global iret_syscall
35
.global memsetb
36
.global memsetb
36
.global memcpy
37
.global memcpy
37
 
38
 
38
userspace_asm:
39
userspace_asm:
39
 
40
 
Line 64... Line 65...
64
	# jump to userspace
65
	# jump to userspace
65
	
66
	
66
	rfi
67
	rfi
67
 
68
 
68
iret:
69
iret:
-
 
70
	
-
 
71
	# disable interrupts
-
 
72
	
-
 
73
	mfmsr r31
-
 
74
	rlwinm r31, r31, 0, 17, 15
-
 
75
	mtmsr r31
-
 
76
	
69
	lwz r0, 0(sp)
77
	lwz r0, 0(sp)
70
	lwz r2, 4(sp)
78
	lwz r2, 4(sp)
71
	lwz r3, 8(sp)
79
	lwz r3, 8(sp)
72
	lwz r4, 12(sp)
80
	lwz r4, 12(sp)
73
	lwz r5, 16(sp)
81
	lwz r5, 16(sp)
Line 96... Line 104...
96
	lwz r29, 108(sp)
104
	lwz r29, 108(sp)
97
	lwz r30, 112(sp)
105
	lwz r30, 112(sp)
98
	lwz r31, 116(sp)
106
	lwz r31, 116(sp)
99
	
107
	
100
	lwz r12, 120(sp)
108
	lwz r12, 120(sp)
101
	mtsrr0 r12
109
	mtcr r12
102
	
110
	
103
	lwz r12, 124(sp)
111
	lwz r12, 124(sp)
104
	mtsrr1 r12
112
	mtsrr0 r12
105
	
113
	
106
	lwz r12, 128(sp)
114
	lwz r12, 128(sp)
107
	mtlr r12
115
	mtsrr1 r12
108
	
116
	
109
	lwz r12, 132(sp)
117
	lwz r12, 132(sp)
110
	mtcr r12
118
	mtlr r12
111
	
119
	
112
	lwz r12, 136(sp)
120
	lwz r12, 136(sp)
113
	mtctr r12
121
	mtctr r12
114
	
122
	
115
	lwz r12, 140(sp)
123
	lwz r12, 140(sp)
116
	mtxer r12
124
	mtxer r12
-
 
125
	
-
 
126
	lwz r12, 144(sp)
-
 
127
	lwz sp, 148(sp)
-
 
128
	
-
 
129
	rfi
117
 
130
 
118
	mfsprg1 sp
131
iret_syscall:
119
	mfsprg2 r12
-
 
120
	
132
	
-
 
133
	# disable interrupts
-
 
134
	
-
 
135
	mfmsr r31
-
 
136
	rlwinm r31, r31, 0, 17, 15
-
 
137
	mtmsr r31
-
 
138
	
-
 
139
	lwz r0, 0(sp)
-
 
140
	lwz r2, 4(sp)
-
 
141
	lwz r4, 12(sp)
-
 
142
	lwz r5, 16(sp)
-
 
143
	lwz r6, 20(sp)
-
 
144
	lwz r7, 24(sp)
-
 
145
	lwz r8, 28(sp)
-
 
146
	lwz r9, 32(sp)
-
 
147
	lwz r10, 36(sp)
-
 
148
	lwz r11, 40(sp)
-
 
149
	lwz r13, 44(sp)
-
 
150
	lwz r14, 48(sp)
-
 
151
	lwz r15, 52(sp)
-
 
152
	lwz r16, 56(sp)
-
 
153
	lwz r17, 60(sp)
-
 
154
	lwz r18, 64(sp)
-
 
155
	lwz r19, 68(sp)
-
 
156
	lwz r20, 72(sp)
-
 
157
	lwz r21, 76(sp)
-
 
158
	lwz r22, 80(sp)
-
 
159
	lwz r23, 84(sp)
-
 
160
	lwz r24, 88(sp)
-
 
161
	lwz r25, 92(sp)
-
 
162
	lwz r26, 96(sp)
-
 
163
	lwz r27, 100(sp)
-
 
164
	lwz r28, 104(sp)
-
 
165
	lwz r29, 108(sp)
-
 
166
	lwz r30, 112(sp)
-
 
167
	lwz r31, 116(sp)
-
 
168
	
-
 
169
	lwz r12, 120(sp)
-
 
170
	mtcr r12
-
 
171
	
-
 
172
	lwz r12, 124(sp)
-
 
173
	mtsrr0 r12
-
 
174
	
-
 
175
	lwz r12, 128(sp)
-
 
176
	mtsrr1 r12
-
 
177
	
-
 
178
	lwz r12, 132(sp)
-
 
179
	mtlr r12
-
 
180
	
-
 
181
	lwz r12, 136(sp)
-
 
182
	mtctr r12
-
 
183
	
-
 
184
	lwz r12, 140(sp)
-
 
185
	mtxer r12
-
 
186
	
-
 
187
	lwz r12, 144(sp)
-
 
188
	lwz sp, 148(sp)
-
 
189
 
121
	rfi
190
	rfi
122
	
191
	
123
memsetb:
192
memsetb:
124
	rlwimi r5, r5, 8, 16, 23
193
	rlwimi r5, r5, 8, 16, 23
125
	rlwimi r5, r5, 16, 0, 15
194
	rlwimi r5, r5, 16, 0, 15