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/stdalone/twotasks-1
    from Rev 38 to Rev 101
    Reverse comparison

Rev 38 → Rev 101

/os/Makefile
3,12 → 3,16
SRC = start.s main.c end.s
BIN = twotasks-1.bin
MAP = twotasks-1.map
EXO = twotasks-1.exo
 
all: $(BIN)
all: $(BIN) $(EXO)
 
run: $(BIN)
$(BUILD)/bin/sim -i -t 1 -l $(BIN)
$(BUILD)/bin/sim -i -t 1 -l $(BIN) -a 0x10000
 
$(EXO): $(BIN)
$(BUILD)/bin/bin2exo -S2 0x10000 $(BIN) $(EXO)
 
$(BIN): $(SRC) task1.dump task2.dump
$(BUILD)/bin/lcc -A -Wo-kernel \
-Wl-m -Wl$(MAP) -o $(BIN) $(SRC)
20,4 → 24,4
../dump/dump ../task2/task2 task2.dump
 
clean:
rm -f *~ task1.dump task2.dump $(BIN) $(MAP)
rm -f *~ task1.dump task2.dump $(BIN) $(MAP) $(EXO)
/os/start.s
124,6 → 124,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
/Makefile
13,6 → 13,7
mkdir -p $(BUILD)/stdalone
cp os/twotasks-1.bin $(BUILD)/stdalone
cp os/twotasks-1.map $(BUILD)/stdalone
cp os/twotasks-1.exo $(BUILD)/stdalone
 
run: dump/dump task1/task1 task2/task2 os/twotasks-1.bin
$(MAKE) -C os run

powered by: WebSVN 2.1.0

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