Rev 2300 | Rev 2465 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2300 | Rev 2329 | ||
---|---|---|---|
Line 44... | Line 44... | ||
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, lr} |
49 | beq case_4 |
49 | beq 4f |
50 | case_1: |
50 | 1: |
51 | cmp r2, #0 |
51 | cmp r2, #0 |
52 | movne ip, #0 |
52 | movne ip, #0 |
53 | beq case_3 |
53 | beq 3f |
54 | case_2: |
54 | 2: |
55 | ldrb r3, [ip, r1] |
55 | ldrb r3, [ip, r1] |
56 | strb r3, [ip, r0] |
56 | strb r3, [ip, r0] |
57 | add ip, ip, #1 |
57 | add ip, ip, #1 |
58 | cmp ip, r2 |
58 | cmp ip, r2 |
59 | bne case_2 |
59 | bne 2b |
60 | case_3: |
60 | 3: |
61 | mov r0, r1 |
61 | mov r0, r1 |
62 | ldmia sp!, {r4, pc} |
62 | ldmia sp!, {r4, pc} |
63 | case_4: |
63 | 4: |
64 | add r3, r0, #3 |
64 | add r3, r0, #3 |
65 | bic r3, r3, #3 |
65 | bic r3, r3, #3 |
66 | cmp r0, r3 |
66 | cmp r0, r3 |
67 | bne case_1 |
67 | bne 1b |
68 | movs r4, r2, lsr #2 |
68 | movs r4, r2, lsr #2 |
69 | moveq lr, r4 |
69 | moveq lr, r4 |
70 | beq case_6 |
70 | beq 6f |
71 | mov lr, #0 |
71 | mov lr, #0 |
72 | mov ip, lr |
72 | mov ip, lr |
73 | case_5: |
73 | 5: |
74 | ldr r3, [ip, r1] |
74 | ldr r3, [ip, r1] |
75 | add lr, lr, #1 |
75 | add lr, lr, #1 |
76 | cmp lr, r4 |
76 | cmp lr, r4 |
77 | str r3, [ip, r0] |
77 | str r3, [ip, r0] |
78 | add ip, ip, #4 |
78 | add ip, ip, #4 |
79 | bne case_5 |
79 | bne 5b |
80 | case_6: |
80 | 6: |
81 | ands r4, r2, #3 |
81 | ands r4, r2, #3 |
82 | beq case_3 |
82 | beq 3b |
83 | mov r3, lr, lsl #2 |
83 | mov r3, lr, lsl #2 |
84 | add r0, r3, r0 |
84 | add r0, r3, r0 |
85 | add ip, r3, r1 |
85 | add ip, r3, r1 |
86 | mov r2, #0 |
86 | mov r2, #0 |
87 | case_7: |
87 | 7: |
88 | ldrb r3, [r2, ip] |
88 | ldrb r3, [r2, ip] |
89 | strb r3, [r2, r0] |
89 | strb r3, [r2, r0] |
90 | add r2, r2, #1 |
90 | add r2, r2, #1 |
91 | cmp r2, r4 |
91 | cmp r2, r4 |
92 | bne case_7 |
92 | bne 7b |
93 | b case_3 |
93 | b 3b |
94 | 94 | ||
95 | memcpy_from_uspace_failover_address: |
95 | memcpy_from_uspace_failover_address: |
96 | memcpy_to_uspace_failover_address: |
96 | memcpy_to_uspace_failover_address: |
97 | mov r0, #0 |
97 | mov r0, #0 |
98 | ldmia sp!, {r4, pc} |
98 | ldmia sp!, {r4, pc} |