Rev 319 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 319 | Rev 320 | ||
---|---|---|---|
Line 144... | Line 144... | ||
144 | beq $k0, $0, 1f |
144 | beq $k0, $0, 1f |
145 | add $k0, $sp, 0 |
145 | add $k0, $sp, 0 |
146 | 146 | ||
147 | # Move $k0 pointer to kernel stack |
147 | # Move $k0 pointer to kernel stack |
148 | lui $k0, %hi(supervisor_sp) |
148 | lui $k0, %hi(supervisor_sp) |
149 | ori $k0, %lo(supervisor_sp) |
149 | ori $k0, $k0, %lo(supervisor_sp) |
150 | # Move $k0 (superveisor_sp) |
150 | # Move $k0 (superveisor_sp) |
151 | lw $k0, 0($k0) |
151 | lw $k0, 0($k0) |
152 | 1: |
152 | 1: |
153 | .endm |
153 | .endm |
154 | 154 | ||
Line 174... | Line 174... | ||
174 | 174 | ||
175 | .org KA2PA(KERNEL_STARTUP_ADDRESS) |
175 | .org KA2PA(KERNEL_STARTUP_ADDRESS) |
176 | kernel_image_start: |
176 | kernel_image_start: |
177 | /* Load temporary stack */ |
177 | /* Load temporary stack */ |
178 | lui $sp, %hi(end_stack) |
178 | lui $sp, %hi(end_stack) |
179 | ori $sp, $0, %lo(end_stack) |
179 | ori $sp, $sp, %lo(end_stack) |
180 | 180 | ||
181 | /* Not sure about this, but might be needed for PIC code???? */ |
181 | /* Not sure about this, but might be needed for PIC code???? */ |
182 | lui $gp, 0x8000 |
182 | lui $gp, 0x8000 |
183 | 183 | ||
184 | jal main_bsp |
184 | jal main_bsp |