Changeset 0970f43 in mainline
- Timestamp:
- 2005-07-20T11:22:01Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 7d365305
- Parents:
- 232e3ec7
- 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 1 MIPS_TARGET=mipsel-linux-gnu 3 2 4 MIPS_CC_DIR=/usr/local/mips /bin5 MIPS_BINUTILS_DIR=/usr/local/mips /bin3 MIPS_CC_DIR=/usr/local/mipsel/bin 4 MIPS_BINUTILS_DIR=/usr/local/mipsel/bin 6 5 7 6 CC=$(MIPS_CC_DIR)/$(MIPS_TARGET)-gcc … … 9 8 LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld 10 9 11 ASFLAGS=- EL -mips310 ASFLAGS=-mips3 12 11 13 12 DEFS=-DARCH=$(ARCH) 14 CPPFLAGS=$(DEFS) -nostdinc - I../include15 CFLAGS=$(CPPFLAGS) - EL -mips2 -G 0 -nostdlib -fno-builtin -Wmissing-prototypes -Werror -O216 LFLAGS=- EL -mips2 -M -no-check-sections -T ../arch/mips/_link.ld13 CPPFLAGS=$(DEFS) -nostdinc -mxgot -I../include 14 CFLAGS=$(CPPFLAGS) -mips2 -G 0 -nostdlib -fno-builtin -Wmissing-prototypes -Werror -O2 15 LFLAGS=-mips2 -M -no-check-sections -T ../arch/mips/_link.ld 17 16 18 17 arch_sources= \ -
arch/mips/_link.ld
r232e3ec7 r0970f43 11 11 12 12 SECTIONS { 13 .image 0x80000000: AT (0x80000000) { 13 .image 0x80000000: AT (0x80000000) { 14 _gp = 0x00000000; 15 14 16 ktext_start = .; 15 17 *(.text); … … 17 19 18 20 kdata_start = .; 21 *(.reginfo); 22 *(.rodata); 23 *(.rodata.*); 19 24 *(.rdata); 20 25 *(.data); /* initialized data */ -
arch/mips/boot/Makefile
r232e3ec7 r0970f43 1 MIPS_BINUTILS_DIR=/usr/local/mips /bin2 MIPS_TARGET= decstation-ultrix1 MIPS_BINUTILS_DIR=/usr/local/mipsel/bin 2 MIPS_TARGET=mipsel-linux-gnu 3 3 4 4 .PHONY: nothing build … … 12 12 LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld 13 13 14 ASFLAGS=-mips2 -EL15 LFLAGS=--oformat=binary -mips2 - EL -e start14 ASFLAGS=-mips2 15 LFLAGS=--oformat=binary -mips2 -e start 16 16 17 17 boot.bin: boot.o -
arch/mips/boot/boot.s
r232e3ec7 r0970f43 33 33 .set nomacro 34 34 35 .global start 35 36 start: 36 37 # move 0x80000000 to reg $8 -
arch/mips/src/mm/asid.c
r232e3ec7 r0970f43 40 40 * 41 41 */ 42 void asid_bitmap_reset( )42 void asid_bitmap_reset(void) 43 43 { 44 44 memsetb(asid_bitmap, sizeof(asid_bitmap), 0); … … 49 49 * 50 50 */ 51 void init_asids( )51 void init_asids(void) 52 52 { 53 53 memsetb(asids, sizeof(asids), 0); -
arch/mips/src/mm/tlb.c
r232e3ec7 r0970f43 28 28 29 29 #include <arch/mm/tlb.h> 30 #include <arch/mm/asid.h> 30 31 #include <mm/tlb.h> 31 32 #include <arch/cp0.h> … … 52 53 void tlb_invalidate(int asid) 53 54 { 55 pri_t pri; 56 57 pri = cpu_priority_high(); 58 59 asid_bitmap_reset(); 60 61 // TODO 62 63 cpu_priority_restore(pri); 54 64 }
Note:
See TracChangeset
for help on using the changeset viewer.