Rev 320 | Rev 341 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 320 | Rev 326 | ||
---|---|---|---|
Line 151... | Line 151... | ||
151 | lw $k0, 0($k0) |
151 | lw $k0, 0($k0) |
152 | 1: |
152 | 1: |
153 | .endm |
153 | .endm |
154 | 154 | ||
155 | .org 0x0 |
155 | .org 0x0 |
156 | tlb_refill_entry: |
- | |
157 | j tlb_refill_handler |
- | |
158 | nop |
- | |
159 | - | ||
160 | .org 0x100 |
- | |
161 | cache_error_entry: |
- | |
162 | j cache_error_handler |
- | |
163 | nop |
- | |
164 | - | ||
165 | .org 0x180 |
- | |
166 | norm_exception: |
- | |
167 | j exception_handler |
- | |
168 | nop |
- | |
169 | - | ||
170 | .org 0x200 |
- | |
171 | iv_exception: |
- | |
172 | j exception_handler |
- | |
173 | nop |
- | |
174 | - | ||
175 | .org KA2PA(KERNEL_STARTUP_ADDRESS) |
- | |
176 | kernel_image_start: |
156 | kernel_image_start: |
177 | /* Load temporary stack */ |
157 | /* Load temporary stack */ |
178 | lui $sp, %hi(end_stack) |
158 | lui $sp, %hi(end_stack) |
179 | ori $sp, $sp, %lo(end_stack) |
159 | ori $sp, $sp, %lo(end_stack) |
180 | 160 | ||
Line 184... | Line 164... | ||
184 | jal main_bsp |
164 | jal main_bsp |
185 | nop |
165 | nop |
186 | 166 | ||
187 | 167 | ||
188 | .space TEMP_STACK_SIZE |
168 | .space TEMP_STACK_SIZE |
189 | end_stack: |
169 | end_stack: |
- | 170 | ||
- | 171 | tlb_refill_entry: |
|
- | 172 | j tlb_refill_handler |
|
- | 173 | nop |
|
- | 174 | ||
- | 175 | cache_error_entry: |
|
- | 176 | j cache_error_handler |
|
- | 177 | nop |
|
- | 178 | ||
- | 179 | exception_entry: |
|
- | 180 | j exception_handler |
|
- | 181 | nop |
|
- | 182 | ||
- | 183 | ||
190 | 184 | ||
191 | exception_handler: |
185 | exception_handler: |
192 | exception_entry: |
- | |
193 | KERNEL_STACK_TO_K0 |
186 | KERNEL_STACK_TO_K0 |
194 | sub $k0, REGISTER_SPACE |
187 | sub $k0, REGISTER_SPACE |
195 | REGISTERS_STORE $k0 |
188 | REGISTERS_STORE $k0 |
196 | add $sp, $k0, 0 |
189 | add $sp, $k0, 0 |
197 | 190 |