Rev 3586 | Rev 3790 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3586 | Rev 3788 | ||
---|---|---|---|
Line 330... | Line 330... | ||
330 | if (s) |
330 | if (s) |
331 | sym2 = s; |
331 | sym2 = s; |
332 | 332 | ||
333 | fault_if_from_uspace(istate, "TLB Refill Exception on %p", |
333 | fault_if_from_uspace(istate, "TLB Refill Exception on %p", |
334 | cp0_badvaddr_read()); |
334 | cp0_badvaddr_read()); |
335 | panic("%x: TLB Refill Exception at %x(%s<-%s)\n", cp0_badvaddr_read(), |
335 | panic("%x: TLB Refill Exception at %x(%s<-%s).\n", cp0_badvaddr_read(), |
336 | istate->epc, symbol, sym2); |
336 | istate->epc, symbol, sym2); |
337 | } |
337 | } |
338 | 338 | ||
339 | 339 | ||
340 | void tlb_invalid_fail(istate_t *istate) |
340 | void tlb_invalid_fail(istate_t *istate) |
Line 344... | Line 344... | ||
344 | char *s = get_symtab_entry(istate->epc); |
344 | char *s = get_symtab_entry(istate->epc); |
345 | if (s) |
345 | if (s) |
346 | symbol = s; |
346 | symbol = s; |
347 | fault_if_from_uspace(istate, "TLB Invalid Exception on %p", |
347 | fault_if_from_uspace(istate, "TLB Invalid Exception on %p", |
348 | cp0_badvaddr_read()); |
348 | cp0_badvaddr_read()); |
349 | panic("%x: TLB Invalid Exception at %x(%s)\n", cp0_badvaddr_read(), |
349 | panic("%x: TLB Invalid Exception at %x(%s).\n", cp0_badvaddr_read(), |
350 | istate->epc, symbol); |
350 | istate->epc, symbol); |
351 | } |
351 | } |
352 | 352 | ||
353 | void tlb_modified_fail(istate_t *istate) |
353 | void tlb_modified_fail(istate_t *istate) |
354 | { |
354 | { |
Line 357... | Line 357... | ||
357 | char *s = get_symtab_entry(istate->epc); |
357 | char *s = get_symtab_entry(istate->epc); |
358 | if (s) |
358 | if (s) |
359 | symbol = s; |
359 | symbol = s; |
360 | fault_if_from_uspace(istate, "TLB Modified Exception on %p", |
360 | fault_if_from_uspace(istate, "TLB Modified Exception on %p", |
361 | cp0_badvaddr_read()); |
361 | cp0_badvaddr_read()); |
362 | panic("%x: TLB Modified Exception at %x(%s)\n", cp0_badvaddr_read(), |
362 | panic("%x: TLB Modified Exception at %x(%s).\n", cp0_badvaddr_read(), |
363 | istate->epc, symbol); |
363 | istate->epc, symbol); |
364 | } |
364 | } |
365 | 365 | ||
366 | /** Try to find PTE for faulting address. |
366 | /** Try to find PTE for faulting address. |
367 | * |
367 | * |