Rev 1386 | Rev 1749 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1386 | Rev 1686 | ||
---|---|---|---|
Line 180... | Line 180... | ||
180 | .org 0x0 |
180 | .org 0x0 |
181 | kernel_image_start: |
181 | kernel_image_start: |
182 | /* Load temporary stack */ |
182 | /* Load temporary stack */ |
183 | lui $sp, %hi(end_stack) |
183 | lui $sp, %hi(end_stack) |
184 | ori $sp, $sp, %lo(end_stack) |
184 | ori $sp, $sp, %lo(end_stack) |
- | 185 | ||
- | 186 | /* $a1 contains physical address of bootinfo_t */ |
|
- | 187 | /* $a2 contains size of bootinfo_t */ |
|
185 | 188 | ||
- | 189 | beq $a2, $0, bootinfo_end |
|
- | 190 | ||
186 | /* Not sure about this, but might be needed for PIC code???? */ |
191 | /* Not sure about this, but might be needed for PIC code???? */ |
187 | lui $gp, 0x8000 |
192 | lui $gp, 0x8000 |
188 | 193 | ||
- | 194 | lui $a3, 0x8000 |
|
- | 195 | addu $a1, $a1, $a3 |
|
- | 196 | ||
- | 197 | lui $a3, %hi(bootinfo) |
|
- | 198 | ori $a3, $a3, %lo(bootinfo) |
|
- | 199 | ||
- | 200 | bootinfo_loop: |
|
- | 201 | ||
- | 202 | lw $v0, 0($a1) |
|
- | 203 | sw $v0, 0($a3) |
|
- | 204 | ||
- | 205 | addi $a1, $a1, 4 |
|
- | 206 | addi $a3, $a3, 4 |
|
- | 207 | addi $a2, $a2, -4 |
|
- | 208 | ||
- | 209 | bgtz $a2, bootinfo_loop |
|
- | 210 | nop |
|
- | 211 | ||
- | 212 | bootinfo_end: |
|
- | 213 | ||
189 | jal arch_pre_main |
214 | jal arch_pre_main |
190 | nop |
215 | nop |
191 | 216 | ||
192 | j main_bsp |
217 | j main_bsp |
193 | nop |
218 | nop |