Subversion Repositories HelenOS

Rev

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

Rev 2465 Rev 3274
Line 43... Line 43...
43
memcpy_from_uspace:
43
memcpy_from_uspace:
44
memcpy_to_uspace:
44
memcpy_to_uspace:
45
	add     r3, r1, #3
45
	add     r3, r1, #3
46
	bic     r3, r3, #3
46
	bic     r3, r3, #3
47
	cmp     r1, r3
47
	cmp     r1, r3
48
	stmdb   sp!, {r4, lr}
48
	stmdb   sp!, {r4, r5, lr}
-
 
49
	mov	r5, r0			/* save dst */
49
	beq     4f
50
	beq     4f
50
1:
51
1:
51
	cmp     r2, #0
52
	cmp     r2, #0
52
	movne   ip, #0
53
	movne   ip, #0
53
	beq     3f
54
	beq     3f
Line 56... Line 57...
56
	strb    r3, [ip, r0]
57
	strb    r3, [ip, r0]
57
	add     ip, ip, #1
58
	add     ip, ip, #1
58
	cmp     ip, r2
59
	cmp     ip, r2
59
	bne     2b
60
	bne     2b
60
3:
61
3:
61
	mov     r0, r1
62
	mov     r0, r5
62
	ldmia   sp!, {r4, pc}
63
	ldmia   sp!, {r4, r5, pc}
63
4:
64
4:
64
	add     r3, r0, #3
65
	add     r3, r0, #3
65
	bic     r3, r3, #3
66
	bic     r3, r3, #3
66
	cmp     r0, r3
67
	cmp     r0, r3
67
	bne     1b
68
	bne     1b
Line 92... Line 93...
92
	bne     7b
93
	bne     7b
93
	b       3b
94
	b       3b
94
 
95
 
95
memcpy_from_uspace_failover_address:
96
memcpy_from_uspace_failover_address:
96
memcpy_to_uspace_failover_address:
97
memcpy_to_uspace_failover_address:
97
	mov		r0, #0
98
	mov	r0, #0
98
	ldmia   sp!, {r4, pc}
99
	ldmia   sp!, {r4, r5, pc}