OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /eco32/trunk
    from Rev 102 to Rev 103
    Reverse comparison

Rev 102 → Rev 103

/stdalone/wrtmbr/mbr/mbr.s
3,7 → 3,7
;
 
.set tba,0xF0300000 ; terminal base address
.set tos,0xC0001000 ; top of stack
.set tos,0xC0011000 ; top of stack
 
start:
add $29,$0,tos ; set stackpointer
/stdalone/wrtmbr/mbr/Makefile
15,7 → 15,7
gcc -m32 -g -Wall -o dump dump.c
 
mbr.bin: mbr.o
$(BUILD)/bin/ld -h -rc 0xC0000000 -o mbr.bin mbr.o
$(BUILD)/bin/ld -h -rc 0xC0010000 -o mbr.bin mbr.o
 
mbr.o: mbr.s
$(BUILD)/bin/as -o mbr.o mbr.s
/stdalone/wrtmbr/Makefile
7,19 → 7,25
SRC = start.s main.c end.s
BIN = wrtmbr.bin
MAP = wrtmbr.map
EXO = wrtmbr.exo
 
.PHONY: all install run clean
 
all: $(BIN)
all: $(BIN) $(EXO)
 
install: $(BIN)
install: $(BIN) $(EXO)
mkdir -p $(BUILD)/stdalone
cp $(BIN) $(BUILD)/stdalone
cp $(MAP) $(BUILD)/stdalone
cp $(EXO) $(BUILD)/stdalone
 
run: $(BIN)
$(BUILD)/bin/sim -i -t 1 -l $(BIN) -d $(BUILD)/disk/disk.img
$(BUILD)/bin/sim -i -t 1 -l $(BIN) -a 0x10000 \
-d $(BUILD)/run/disk.img
 
$(EXO): $(BIN)
$(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
 
$(BIN): $(SRC) mbr/mbr.dump
$(BUILD)/bin/lcc -A -Wo-kernel \
-Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
29,4 → 35,4
 
clean:
$(MAKE) -C mbr clean
rm -f *~ $(BIN) $(MAP)
rm -f *~ $(BIN) $(MAP) $(EXO)
/stdalone/wrtmbr/start.s
112,6 → 112,11
rfx ; return from exception
 
start:
add $8,$0,0xA8003FFF
add $9,$0,0xC0000000
stw $8,$9,0 ; 0xC0000000: j 0xC0010000
stw $8,$9,4 ; 0xC0000004: j 0xC0010004
stw $8,$9,8 ; 0xC0000008: j 0xC0010008
mvfs $8,0
or $8,$8,1 << 27 ; let vector point to RAM
mvts $8,0

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.