Changeset 20235a3 in mainline for boot/arch/mips32/src/asm.S
- Timestamp:
- 2010-09-02T20:55:28Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0c39b96
- Parents:
- 0c61955 (diff), 3249673 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/mips32/src/asm.S
r0c61955 r20235a3 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 #
Note:
See TracChangeset
for help on using the changeset viewer.