Changeset ab08b42 in mainline for arch/mips/src/mm/tlb.c


Ignore:
Timestamp:
2005-09-03T16:40:25Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6401f79
Parents:
f6297e0
Message:

Added symbol table lookup in exceptions.
This breaks ia64 & ppc architecture compiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/src/mm/tlb.c

    rf6297e0 rab08b42  
    3434#include <arch.h>
    3535
     36#include <symtab.h>
     37
    3638void main_bsp(void);
    37 
    38 
    39 
    4039
    4140int bootstrap = 1;
     
    5352void tlb_invalid(void)
    5453{
    55         panic("%X: TLB exception at %X", cp0_badvaddr_read(), THREAD ? THREAD->saved_epc : 0);
     54        char *symbol = "";
     55
     56        if (THREAD) {
     57                char *s = get_symtab_entry(THREAD->saved_epc);
     58                if (s)
     59                        symbol = s;
     60        }
     61        panic("%X: TLB exception at %X(%s)\n", cp0_badvaddr_read(),
     62              THREAD ? THREAD->saved_epc : 0, symbol);
    5663}
    5764
Note: See TracChangeset for help on using the changeset viewer.