|
|
|
@ -38,12 +38,12 @@ |
|
|
|
|
.text |
|
|
|
|
LEAF(startup) |
|
|
|
|
.set noreorder
|
|
|
|
|
addi sp, -48
|
|
|
|
|
sw a0, 16(sp)
|
|
|
|
|
sw a1, 20(sp)
|
|
|
|
|
sw a2, 24(sp)
|
|
|
|
|
addi sp, -48 |
|
|
|
|
sw a0, 16(sp) |
|
|
|
|
sw a1, 20(sp) |
|
|
|
|
sw a2, 24(sp) |
|
|
|
|
sw a3, 28(sp) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* Copy decompressor code to the right place */ |
|
|
|
|
li t2, BZ_TEXT_START |
|
|
|
|
add a0, t2, 0 |
|
|
|
@ -56,7 +56,7 @@ $L1: |
|
|
|
|
add a0, 4 |
|
|
|
|
blt a1, a2, $L1 |
|
|
|
|
nop |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* At this point we need to invalidate dcache and */ |
|
|
|
|
/* icache before jumping to new code */ |
|
|
|
|
|
|
|
|
@ -103,10 +103,10 @@ $L1: |
|
|
|
|
.set mips0
|
|
|
|
|
bne t0,t1,1b |
|
|
|
|
addu t0,s1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
nodc: |
|
|
|
|
/* Now we get to do it all again for the I$ */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
move s3,zero /* just in case there is no icache */ |
|
|
|
|
move s4,zero |
|
|
|
|
|
|
|
|
@ -155,6 +155,6 @@ noic: |
|
|
|
|
move a2,s1 /* dcache line size */ |
|
|
|
|
jal t2 |
|
|
|
|
move a3,s2 /* dcache size */ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.set reorder
|
|
|
|
|
END(startup) |
|
|
|
|