Subversion Repositories HelenOS-historic

Rev

Rev 319 | Rev 332 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 319 Rev 324
Line 35... Line 35...
35
 
35
 
36
#include <symtab.h>
36
#include <symtab.h>
37
 
37
 
38
void tlb_refill(struct exception_regdump *pstate)
38
void tlb_refill(struct exception_regdump *pstate)
39
{
39
{
-
 
40
    char *symbol = "";
-
 
41
    char *sym2 = "";
-
 
42
 
-
 
43
    if (THREAD) {
-
 
44
        char *s = get_symtab_entry(pstate->epc);
-
 
45
        if (s)
-
 
46
            symbol = s;
-
 
47
        s = get_symtab_entry(pstate->ra);
-
 
48
        if (s)
-
 
49
            sym2 = s;
-
 
50
    }
40
    panic("tlb_refill exception\n");
51
    panic("%X: tlb_refill exception at %X(%s<-%s)\n", cp0_badvaddr_read(),
-
 
52
          pstate->epc, symbol,sym2);
41
}
53
}
42
 
54
 
43
void tlb_invalid(struct exception_regdump *pstate)
55
void tlb_invalid(struct exception_regdump *pstate)
44
{
56
{
45
    char *symbol = "";
57
    char *symbol = "";