Changeset a2da43c in mainline
- Timestamp:
- 2010-07-24T20:03:35Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- af96dd57, c621f4aa
- Parents:
- 46757a6
- Location:
- boot
- Files:
-
- 1 added
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/Makefile.inc
r46757a6 ra2da43c 53 53 $(COMPS_C) \ 54 54 genarch/src/division.c \ 55 generic/src/memstr.c \ 55 56 generic/src/printf_core.c \ 56 57 generic/src/vprintf.c \ -
boot/arch/arm32/src/asm.S
r46757a6 ra2da43c 35 35 .global boot_stack 36 36 .global halt 37 .global memcpy38 37 .global jump_to_kernel 39 38 … … 55 54 b halt 56 55 57 memcpy:58 add r3, r1, #359 bic r3, r3, #360 cmp r1, r361 stmdb sp!, {r4, r5, lr}62 mov r5, r063 beq 4f64 65 1:66 cmp r2, #067 movne ip, #068 beq 3f69 70 2:71 ldrb r3, [ip, r1]72 strb r3, [ip, r0]73 add ip, ip, #174 cmp ip, r275 bne 2b76 77 3:78 mov r0, r579 ldmia sp!, {r4, r5, pc}80 81 4:82 add r3, r0, #383 bic r3, r3, #384 cmp r0, r385 bne 1b86 movs r4, r2, lsr #287 moveq lr, r488 beq 6f89 mov lr, #090 mov ip, lr91 92 5:93 ldr r3, [ip, r1]94 add lr, lr, #195 cmp lr, r496 str r3, [ip, r0]97 add ip, ip, #498 bne 5b99 100 6:101 ands r4, r2, #3102 beq 3b103 mov r3, lr, lsl #2104 add r0, r3, r0105 add ip, r3, r1106 mov r2, #0107 108 7:109 ldrb r3, [r2, ip]110 strb r3, [r2, r0]111 add r2, r2, #1112 cmp r2, r4113 bne 7b114 b 3b115 116 56 jump_to_kernel: 117 57 # -
boot/arch/ia64/Makefile.inc
r46757a6 ra2da43c 49 49 genarch/src/division.c \ 50 50 generic/src/balloc.c \ 51 generic/src/memstr.c \ 51 52 generic/src/printf_core.c \ 52 53 generic/src/vprintf.c \ -
boot/arch/ia64/src/asm.S
r46757a6 ra2da43c 1 1 # 2 2 # Copyright (c) 2006 Martin Decky 3 # Copyright (c) 2006 Jakub Jermar 3 # Copyright (c) 2006 Jakub Jermar 4 4 # All rights reserved. 5 5 # … … 39 39 br halt 40 40 41 memcpy:42 alloc loc0 = ar.pfs, 3, 1, 0, 043 44 adds r14 = 7, in145 mov r2 = ar.lc46 mov r8 = in0 ;;47 and r14 = -8, r14 ;;48 cmp.ne p6, p7 = r14, in149 (p7) br.cond.dpnt 3f ;;50 0:51 cmp.ne p6, p7 = 0, in252 (p7) br.cond.dpnt 2f ;;53 (p6) adds r14 = -1, in254 (p6) mov r16 = r055 (p6) mov r17 = r0 ;;56 (p6) mov ar.lc = r1457 1:58 add r14 = r16, in159 add r15 = r16, in060 adds r17 = 1, r17 ;;61 ld1 r14 = [r14]62 mov r16 = r17 ;;63 st1 [r15] = r1464 br.cloop.sptk.few 1b ;;65 2:66 mov ar.lc = r267 mov ar.pfs = loc068 br.ret.sptk.many rp69 3:70 adds r14 = 7, in0 ;;71 and r14 = -8, r14 ;;72 cmp.eq p6, p7 = r14, in073 (p7) br.cond.dptk 0b74 shr.u r18 = in2, 3 ;;75 cmp.ne p6, p7 = 0, r1876 (p7) br.cond.dpnt 5f ;;77 (p6) adds r14 = -1, r1878 (p6) mov r16 = r079 (p6) mov r17 = r0 ;;80 (p6) mov ar.lc = r1481 4:82 shladd r14 = r16, 3, r083 adds r16 = 1, r17 ;;84 add r15 = in1, r1485 add r14 = in0, r1486 mov r17 = r16 ;;87 ld8 r15 = [r15] ;;88 st8 [r14] = r1589 br.cloop.sptk.few 4b90 5:91 and r15 = 7, in292 shladd r14 = r18, 3, r093 mov r16 = r094 mov r18 = r0 ;;95 cmp.eq p6, p7 = 0, r1596 add in0 = r14, in097 adds r15 = -1, r1598 add r17 = r14, in199 (p6) br.cond.dpnt 2b ;;100 mov ar.lc = r15101 6:102 add r14 = r16, r17103 add r15 = r16, in0104 adds r16 = 1, r18 ;;105 ld1 r14 = [r14]106 mov r18 = r16 ;;107 st1 [r15] = r14108 br.cloop.sptk.few 6b ;;109 mov ar.lc = r2110 mov ar.pfs = loc0111 br.ret.sptk.many rp112 113 41 jump_to_kernel: 114 42 alloc loc0 = ar.pfs, 1, 1, 0, 0 -
boot/arch/mips32/Makefile.inc
r46757a6 ra2da43c 61 61 genarch/src/division.c \ 62 62 genarch/src/multiplication.c \ 63 generic/src/memstr.c \ 63 64 generic/src/printf_core.c \ 64 65 generic/src/vprintf.c \ -
boot/arch/mips32/src/asm.S
r46757a6 ra2da43c 36 36 .global start 37 37 .global halt 38 .global memcpy39 38 .global jump_to_kernel 40 39 … … 127 126 nop 128 127 129 memcpy:130 addiu $v0, $a1, 3131 li $v1, -4132 and $v0, $v0, $v1133 beq $a1, $v0, 3f134 move $t0, $a0135 move $t2, $a0136 137 0:138 beq $a2, $zero, 2f139 move $a3, $zero140 141 1:142 addu $v0, $a1, $a3143 lbu $a0, 0($v0)144 addu $v1, $t0, $a3145 addiu $a3, $a3, 1146 bne $a3, $a2, 1b147 sb $a0, 0($v1)148 149 2:150 jr $ra151 move $v0, $t2152 153 3:154 addiu $v0, $a0, 3155 and $v0, $v0, $v1156 bne $a0, $v0, 0b157 srl $t1, $a2, 2158 159 beq $t1, $zero, 5f160 move $a3, $zero161 162 move $a3, $zero163 move $a0, $zero164 165 4:166 addu $v0, $a1, $a0167 lw $v1, 0($v0)168 addiu $a3, $a3, 1169 addu $v0, $t0, $a0170 sw $v1, 0($v0)171 bne $a3, $t1, 4b172 addiu $a0, $a0, 4173 174 5:175 andi $a2, $a2, 0x3176 beq $a2, $zero, 2b177 nop178 179 sll $v0, $a3, 2180 addu $t1, $v0, $t0181 move $a3, $zero182 addu $t0, $v0, $a1183 184 6:185 addu $v0, $t0, $a3186 lbu $a0, 0($v0)187 addu $v1, $t1, $a3188 addiu $a3, $a3, 1189 bne $a3, $a2, 6b190 sb $a0, 0($v1)191 192 jr $ra193 move $v0, $t2194 195 128 jump_to_kernel: 196 129 # -
boot/arch/ppc32/Makefile.inc
r46757a6 ra2da43c 56 56 genarch/src/multiplication.c \ 57 57 generic/src/balloc.c \ 58 generic/src/memstr.c \ 58 59 generic/src/printf_core.c \ 59 60 generic/src/vprintf.c \ -
boot/arch/ppc32/src/asm.S
r46757a6 ra2da43c 60 60 .global start 61 61 .global halt 62 .global memcpy63 62 .global jump_to_kernel 64 63 .global real_mode … … 78 77 halt: 79 78 b halt 80 81 memcpy:82 srwi. r7, r5, 383 addi r6, r3, -484 addi r4, r4, -485 beq 2f86 87 andi. r0, r6, 388 mtctr r789 bne 5f90 91 1:92 lwz r7, 4(r4)93 lwzu r8, 8(r4)94 stw r7, 4(r6)95 stwu r8, 8(r6)96 bdnz 1b97 98 andi. r5, r5, 799 100 2:101 cmplwi 0, r5, 4102 blt 3f103 104 lwzu r0, 4(r4)105 addi r5, r5, -4106 stwu r0, 4(r6)107 108 3:109 cmpwi 0, r5, 0110 beqlr111 mtctr r5112 addi r4, r4, 3113 addi r6, r6, 3114 115 4:116 lbzu r0, 1(r4)117 stbu r0, 1(r6)118 bdnz 4b119 blr120 121 5:122 subfic r0, r0, 4123 mtctr r0124 125 6:126 lbz r7, 4(r4)127 addi r4, r4, 1128 stb r7, 4(r6)129 addi r6, r6, 1130 bdnz 6b131 subf r5, r0, r5132 rlwinm. r7, r5, 32-3, 3, 31133 beq 2b134 mtctr r7135 b 1b136 79 137 80 jump_to_kernel: -
boot/arch/sparc64/Makefile.inc
r46757a6 ra2da43c 54 54 genarch/src/ofw_tree.c \ 55 55 generic/src/balloc.c \ 56 generic/src/memstr.c \ 56 57 generic/src/printf_core.c \ 57 58 generic/src/vprintf.c \ -
boot/arch/sparc64/src/asm.S
r46757a6 ra2da43c 42 42 .global start 43 43 .global halt 44 .global memcpy45 44 .global jump_to_kernel 46 45 … … 98 97 ba %xcc, halt 99 98 nop 100 101 memcpy:102 ! Save dst103 104 mov %o0, %o3105 add %o1, 7, %g1106 and %g1, -8, %g1107 cmp %o1, %g1108 be,pn %xcc, 3f109 add %o0, 7, %g1110 mov 0, %g3111 112 0:113 brz,pn %o2, 2f114 mov 0, %g2115 116 1:117 ldub [%g3 + %o1], %g1118 add %g2, 1, %g2119 cmp %o2, %g2120 stb %g1, [%g3 + %o0]121 bne,pt %xcc, 1b122 mov %g2, %g3123 124 2:125 ! Exit point126 127 jmp %o7 + 8128 mov %o3, %o0129 130 3:131 and %g1, -8, %g1132 cmp %o0, %g1133 bne,pt %xcc, 0b134 mov 0, %g3135 srlx %o2, 3, %g4136 brz,pn %g4, 5f137 mov 0, %g5138 139 4:140 sllx %g3, 3, %g2141 add %g5, 1, %g3142 ldx [%o1 + %g2], %g1143 mov %g3, %g5144 cmp %g4, %g3145 bne,pt %xcc, 4b146 stx %g1, [%o0 + %g2]147 148 5:149 and %o2, 7, %o2150 brz,pn %o2, 2b151 sllx %g4, 3, %g1152 mov 0, %g2153 add %g1, %o0, %o0154 add %g1, %o1, %g4155 mov 0, %g3156 157 6:158 ldub [%g2 + %g4], %g1159 stb %g1, [%g2 + %o0]160 add %g3, 1, %g2161 cmp %o2, %g2162 bne,pt %xcc, 6b163 mov %g2, %g3164 165 ! Exit point166 167 jmp %o7 + 8168 mov %o3, %o0169 99 170 100 jump_to_kernel:
Note:
See TracChangeset
for help on using the changeset viewer.