Subversion Repositories HelenOS-historic

Rev

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

Rev 1277 Rev 1288
Line 33... Line 33...
33
.global userspace_asm
33
.global userspace_asm
34
.global iret
34
.global iret
35
.global iret_syscall
35
.global iret_syscall
36
.global memsetb
36
.global memsetb
37
.global memcpy
37
.global memcpy
-
 
38
.global memcpy_from_uspace
-
 
39
.global memcpy_to_uspace
-
 
40
.global memcpy_from_uspace_failover_address
-
 
41
.global memcpy_to_uspace_failover_address
38
 
42
 
39
userspace_asm:
43
userspace_asm:
40
 
44
 
41
	# r3 = uspace_uarg
45
	# r3 = uspace_uarg
42
	# r4 = stack
46
	# r4 = stack
Line 231... Line 235...
231
	bdnz 8b
235
	bdnz 8b
232
	
236
	
233
	blr
237
	blr
234
 
238
 
235
memcpy:
239
memcpy:
-
 
240
memcpy_from_uspace:
-
 
241
memcpy_to_uspace:
-
 
242
 
236
	srwi. r7, r5, 3
243
	srwi. r7, r5, 3
237
	addi r6, r3, -4
244
	addi r6, r3, -4
238
	addi r4, r4, -4
245
	addi r4, r4, -4
239
	beq	2f
246
	beq	2f
240
	
247
	
Line 291... Line 298...
291
	subf r5, r0, r5
298
	subf r5, r0, r5
292
	rlwinm. r7, r5, 32-3, 3, 31
299
	rlwinm. r7, r5, 32-3, 3, 31
293
	beq 2b
300
	beq 2b
294
	mtctr r7
301
	mtctr r7
295
	b 1b
302
	b 1b
-
 
303
 
-
 
304
memcpy_from_uspace_failover_address:
-
 
305
memcpy_to_uspace_failover_address:
-
 
306
	b memcpy_from_uspace_failover_address