Changeset 0970f43 in mainline


Ignore:
Timestamp:
2005-07-20T11:22:01Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7d365305
Parents:
232e3ec7
Message:

Make MIPS target compile and link properly with the new 4.0.1 MIPS toolchain

Location:
arch/mips
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • arch/mips/Makefile.inc

    r232e3ec7 r0970f43  
    1 # decstation-ultrix target has been obsoleted in recent gcc compilers (3.1) and removed in (3.3)
    2 MIPS_TARGET=decstation-ultrix
     1MIPS_TARGET=mipsel-linux-gnu
    32
    4 MIPS_CC_DIR=/usr/local/mips/bin
    5 MIPS_BINUTILS_DIR=/usr/local/mips/bin
     3MIPS_CC_DIR=/usr/local/mipsel/bin
     4MIPS_BINUTILS_DIR=/usr/local/mipsel/bin
    65
    76CC=$(MIPS_CC_DIR)/$(MIPS_TARGET)-gcc
     
    98LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
    109
    11 ASFLAGS=-EL -mips3
     10ASFLAGS=-mips3
    1211
    1312DEFS=-DARCH=$(ARCH)
    14 CPPFLAGS=$(DEFS) -nostdinc -I../include
    15 CFLAGS=$(CPPFLAGS) -EL -mips2 -G 0 -nostdlib -fno-builtin -Wmissing-prototypes -Werror -O2
    16 LFLAGS=-EL -mips2 -M -no-check-sections -T ../arch/mips/_link.ld
     13CPPFLAGS=$(DEFS) -nostdinc -mxgot -I../include
     14CFLAGS=$(CPPFLAGS) -mips2 -G 0 -nostdlib -fno-builtin -Wmissing-prototypes -Werror -O2
     15LFLAGS=-mips2 -M -no-check-sections -T ../arch/mips/_link.ld
    1716
    1817arch_sources= \
  • arch/mips/_link.ld

    r232e3ec7 r0970f43  
    1111
    1212SECTIONS {
    13         .image 0x80000000: AT (0x80000000) {
     13        .image 0x80000000: AT (0x80000000) {
     14                _gp = 0x00000000;
     15               
    1416                ktext_start = .;
    1517                *(.text);
     
    1719
    1820                kdata_start = .;
     21                *(.reginfo);
     22                *(.rodata);
     23                *(.rodata.*);
    1924                *(.rdata);
    2025                *(.data);               /* initialized data */
  • arch/mips/boot/Makefile

    r232e3ec7 r0970f43  
    1 MIPS_BINUTILS_DIR=/usr/local/mips/bin
    2 MIPS_TARGET=decstation-ultrix
     1MIPS_BINUTILS_DIR=/usr/local/mipsel/bin
     2MIPS_TARGET=mipsel-linux-gnu
    33
    44.PHONY: nothing build
     
    1212LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
    1313
    14 ASFLAGS=-mips2 -EL
    15 LFLAGS=--oformat=binary -mips2 -EL -e start
     14ASFLAGS=-mips2
     15LFLAGS=--oformat=binary -mips2 -e start
    1616
    1717boot.bin: boot.o
  • arch/mips/boot/boot.s

    r232e3ec7 r0970f43  
    3333.set nomacro
    3434
     35.global start
    3536start:
    3637        # move 0x80000000 to reg $8
  • arch/mips/src/mm/asid.c

    r232e3ec7 r0970f43  
    4040 *
    4141 */
    42 void asid_bitmap_reset()
     42void asid_bitmap_reset(void)
    4343{
    4444        memsetb(asid_bitmap, sizeof(asid_bitmap), 0);
     
    4949 *
    5050 */
    51 void init_asids()
     51void init_asids(void)
    5252{
    5353        memsetb(asids, sizeof(asids), 0);
  • arch/mips/src/mm/tlb.c

    r232e3ec7 r0970f43  
    2828
    2929#include <arch/mm/tlb.h>
     30#include <arch/mm/asid.h>
    3031#include <mm/tlb.h>
    3132#include <arch/cp0.h>
     
    5253void tlb_invalidate(int asid)
    5354{
     55        pri_t pri;
     56       
     57        pri = cpu_priority_high();
     58       
     59        asid_bitmap_reset();
     60       
     61        // TODO
     62       
     63        cpu_priority_restore(pri);
    5464}
Note: See TracChangeset for help on using the changeset viewer.