Subversion Repositories HelenOS-historic

Rev

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

Rev 1355 Rev 1374
Line 31... Line 31...
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 iret_syscall
-
 
36
.global invalidate_bat
36
.global memsetb
37
.global memsetb
37
.global memcpy
38
.global memcpy
38
.global memcpy_from_uspace
39
.global memcpy_from_uspace
39
.global memcpy_to_uspace
40
.global memcpy_to_uspace
40
.global memcpy_from_uspace_failover_address
41
.global memcpy_from_uspace_failover_address
Line 191... Line 192...
191
	lwz r12, 152(sp)
192
	lwz r12, 152(sp)
192
	lwz sp, 156(sp)
193
	lwz sp, 156(sp)
193
 
194
 
194
	rfi
195
	rfi
195
	
196
	
-
 
197
invalidate_bat:
-
 
198
	
-
 
199
	# invalidate block address translation registers
-
 
200
	
-
 
201
	li r14, 0
-
 
202
	
-
 
203
	mtspr ibat0u, r14
-
 
204
	mtspr ibat0l, r14
-
 
205
	
-
 
206
	mtspr ibat1u, r14
-
 
207
	mtspr ibat1l, r14
-
 
208
	
-
 
209
	mtspr ibat2u, r14
-
 
210
	mtspr ibat2l, r14
-
 
211
	
-
 
212
	mtspr ibat3u, r14
-
 
213
	mtspr ibat3l, r14
-
 
214
	
-
 
215
	mtspr dbat0u, r14
-
 
216
	mtspr dbat0l, r14
-
 
217
	
-
 
218
	mtspr dbat1u, r14
-
 
219
	mtspr dbat1l, r14
-
 
220
	
-
 
221
	mtspr dbat2u, r14
-
 
222
	mtspr dbat2l, r14
-
 
223
	
-
 
224
	mtspr dbat3u, r14
-
 
225
	mtspr dbat3l, r14
-
 
226
	
-
 
227
	blr
-
 
228
	
196
memsetb:
229
memsetb:
197
	rlwimi r5, r5, 8, 16, 23
230
	rlwimi r5, r5, 8, 16, 23
198
	rlwimi r5, r5, 16, 0, 15
231
	rlwimi r5, r5, 16, 0, 15
199
	
232
	
200
	addi r14, r3, -4
233
	addi r14, r3, -4