Changeset ab08b42 in mainline for arch/mips


Ignore:
Timestamp:
2005-09-03T16:40:25Z (20 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.

Location:
arch/mips
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/Makefile.inc

    rf6297e0 rab08b42  
    77AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
    88LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
     9OBJCOPY=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-objcopy
     10BFD_NAME=elf32-tradlittlemips
     11BFD_ARCH=mips
    912
    1013ASFLAGS=-mips3
  • arch/mips/_link.ld

    rf6297e0 rab08b42  
    3737                *(.scommon);
    3838                *(COMMON);              /* global variables */
     39
     40                symbol_table = .;
     41                *(symtab.*);            /* Symbol table, must be LAST symbol!*/
     42
    3943                kdata_end = .;
    4044
  • 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.