URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 101 to Rev 102
- ↔ Reverse comparison
Rev 101 → Rev 102
/eco32/trunk/stdalone/twotasks-2/os/Makefile
3,12 → 3,16
SRC = start.s main.c end.s |
BIN = twotasks-2.bin |
MAP = twotasks-2.map |
EXO = twotasks-2.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) |
/eco32/trunk/stdalone/twotasks-2/os/start.s
140,6 → 140,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 |
/eco32/trunk/stdalone/twotasks-2/Makefile
13,6 → 13,7
mkdir -p $(BUILD)/stdalone |
cp os/twotasks-2.bin $(BUILD)/stdalone |
cp os/twotasks-2.map $(BUILD)/stdalone |
cp os/twotasks-2.exo $(BUILD)/stdalone |
|
run: dump/dump task1/task1 task2/task2 os/twotasks-2.bin |
$(MAKE) -C os run |