Changeset da349da0 in mainline
- Timestamp:
- 2008-08-10T15:28:42Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a9d4d2c
- Parents:
- d2e9c47
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/loader/asm.S
rd2e9c47 rda349da0 36 36 bic r3, r3, #3 37 37 cmp r1, r3 38 stmdb sp!, {r4, lr} 38 stmdb sp!, {r4, r5, lr} 39 mov r5, r0 39 40 beq 4f 40 41 1: … … 49 50 bne 2b 50 51 3: 51 mov r0, r 152 ldmia sp!, {r4, pc}52 mov r0, r5 53 ldmia sp!, {r4, r5, pc} 53 54 4: 54 55 add r3, r0, #3 -
boot/arch/mips32/loader/asm.S
rd2e9c47 rda349da0 49 49 beq $a1,$v0,3f 50 50 move $t0,$a0 51 move $t2,$a0 # save dst 51 52 52 53 0: … … 64 65 2: 65 66 jr $ra 66 move $v0,$ a167 move $v0,$t2 67 68 68 69 3: … … 104 105 105 106 jr $ra 106 move $v0,$ a1107 move $v0,$t2 107 108 108 109 jump_to_kernel: -
boot/arch/sparc64/loader/asm.S
rd2e9c47 rda349da0 31 31 #include <register.h> 32 32 33 .register %g2, #scratch 34 .register %g3, #scratch 35 33 36 .text 34 37 … … 42 45 43 46 memcpy: 44 .register %g2, #scratch 45 .register %g3, #scratch 47 mov %o0, %o3 ! save dst 46 48 add %o1, 7, %g1 47 49 and %g1, -8, %g1 … … 62 64 2: 63 65 jmp %o7 + 8 ! exit point 64 mov %o 1, %o066 mov %o3, %o0 65 67 3: 66 68 and %g1, -8, %g1 … … 96 98 97 99 jmp %o7 + 8 ! exit point 98 mov %o 1, %o0100 mov %o3, %o0 99 101 100 102 jump_to_kernel: -
kernel/arch/amd64/src/asm_utils.S
rd2e9c47 rda349da0 99 99 * @param MEMCPY_SIZE Number of bytes to copy. 100 100 * 101 * @retrun MEMCPY_ SRCon success, 0 on failure.101 * @retrun MEMCPY_DST on success, 0 on failure. 102 102 */ 103 103 memcpy: 104 104 memcpy_from_uspace: 105 105 memcpy_to_uspace: 106 movq MEMCPY_ SRC, %rax106 movq MEMCPY_DST, %rax 107 107 108 108 movq MEMCPY_SIZE, %rcx -
kernel/arch/arm32/src/asm.S
rd2e9c47 rda349da0 46 46 bic r3, r3, #3 47 47 cmp r1, r3 48 stmdb sp!, {r4, lr} 48 stmdb sp!, {r4, r5, lr} 49 mov r5, r0 /* save dst */ 49 50 beq 4f 50 51 1: … … 59 60 bne 2b 60 61 3: 61 mov r0, r 162 ldmia sp!, {r4, pc}62 mov r0, r5 63 ldmia sp!, {r4, r5, pc} 63 64 4: 64 65 add r3, r0, #3 … … 95 96 memcpy_from_uspace_failover_address: 96 97 memcpy_to_uspace_failover_address: 97 mov 98 ldmia sp!, {r4, pc}98 mov r0, #0 99 ldmia sp!, {r4, r5, pc} -
kernel/arch/ia32/src/asm.S
rd2e9c47 rda349da0 72 72 * @param MEMCPY_SIZE(%esp) Size. 73 73 * 74 * @return MEMCPY_ SRC(%esp) on success and 0 on failure.74 * @return MEMCPY_DST(%esp) on success and 0 on failure. 75 75 */ 76 76 memcpy: … … 97 97 movl %edx, %edi 98 98 movl %eax, %esi 99 movl MEMCPY_ SRC(%esp), %eax /* MEMCPY_SRC(%esp), success */99 movl MEMCPY_DST(%esp), %eax /* MEMCPY_DST(%esp), success */ 100 100 ret 101 101 -
kernel/arch/ia32xen/src/asm.S
rd2e9c47 rda349da0 68 68 * @param MEMCPY_SIZE(%esp) Size. 69 69 * 70 * @return MEMCPY_ SRC(%esp) on success and 0 on failure.70 * @return MEMCPY_DST(%esp) on success and 0 on failure. 71 71 */ 72 72 memcpy: … … 93 93 movl %edx, %edi 94 94 movl %eax, %esi 95 movl MEMCPY_ SRC(%esp), %eax /* MEMCPY_SRC(%esp), success */95 movl MEMCPY_DST(%esp), %eax /* MEMCPY_DST(%esp), success */ 96 96 ret 97 97 -
kernel/arch/ia64/src/asm.S
rd2e9c47 rda349da0 52 52 adds r14 = 7, in1 53 53 mov r2 = ar.lc 54 mov r8 = in 1;;54 mov r8 = in0 ;; 55 55 and r14 = -8, r14 ;; 56 56 cmp.ne p6, p7 = r14, in1 -
kernel/arch/mips32/src/asm.S
rd2e9c47 rda349da0 72 72 beq $a1,$v0,3f 73 73 move $t0,$a0 74 move $t2,$a0 # save dst 74 75 75 76 0: … … 87 88 2: 88 89 jr $ra 89 move $v0,$ a190 move $v0,$t2 90 91 91 92 3: … … 127 128 128 129 jr $ra 129 move $v0,$ a1130 move $v0,$t2 130 131 131 132 memcpy_from_uspace_failover_address: -
kernel/arch/sparc64/src/asm.S
rd2e9c47 rda349da0 42 42 .global memcpy 43 43 memcpy: 44 mov %o0, %o3 ! save dst 44 45 add %o1, 7, %g1 45 46 and %g1, -8, %g1 … … 60 61 2: 61 62 jmp %o7 + 8 ! exit point 62 mov %o 1, %o063 mov %o3, %o0 63 64 3: 64 65 and %g1, -8, %g1 … … 94 95 95 96 jmp %o7 + 8 ! exit point 96 mov %o 1, %o097 mov %o3, %o0 97 98 98 99 /* … … 101 102 .global memcpy_from_uspace 102 103 memcpy_from_uspace: 104 mov %o0, %o3 ! save dst 103 105 add %o1, 7, %g1 104 106 and %g1, -8, %g1 … … 119 121 2: 120 122 jmp %o7 + 8 ! exit point 121 mov %o 1, %o0123 mov %o3, %o0 122 124 3: 123 125 and %g1, -8, %g1 … … 153 155 154 156 jmp %o7 + 8 ! exit point 155 mov %o 1, %o0157 mov %o3, %o0 156 158 157 159 /* … … 160 162 .global memcpy_to_uspace 161 163 memcpy_to_uspace: 164 mov %o0, %o3 ! save dst 162 165 add %o1, 7, %g1 163 166 and %g1, -8, %g1 … … 178 181 2: 179 182 jmp %o7 + 8 ! exit point 180 mov %o 1, %o0183 mov %o3, %o0 181 184 3: 182 185 and %g1, -8, %g1 … … 212 215 213 216 jmp %o7 + 8 ! exit point 214 mov %o 1, %o0217 mov %o3, %o0 215 218 216 219 .global memcpy_from_uspace_failover_address -
kernel/generic/src/lib/memstr.c
rd2e9c47 rda349da0 75 75 } 76 76 77 return (char *) src;77 return (char *) dst; 78 78 } 79 79 -
uspace/lib/libc/generic/string.c
rd2e9c47 rda349da0 70 70 ((unsigned char *) (((unsigned long *) src) + i))[j]; 71 71 72 return (char *) src;72 return (char *) dst; 73 73 } 74 74 … … 88 88 ((unsigned char *) (((unsigned long *) src) + i))[j]; 89 89 90 return (char *) src;90 return (char *) dst; 91 91 } 92 92 … … 105 105 ((unsigned long *) dst)[i] = ((unsigned long *) src)[i]; 106 106 107 return (char *) src;107 return (char *) dst; 108 108 } 109 109
Note:
See TracChangeset
for help on using the changeset viewer.