lfn
serial
ticket/834-toolchain-update
topic/msim-upgrade
topic/simplify-dev-export
|
Last change
on this file since a5d1331 was e84439a, checked in by Ondrej Palkovsky <ondrap@…>, 21 years ago |
|
Fixed mips boot process.
On interrupt saving registers, save $lo, $hi.
Add interrupt naming to asm files (mips).
Save only necessary registers on context switch (see mips ABI).
Fixed copyright info.
|
-
Property mode
set to
100644
|
|
File size:
462 bytes
|
| Line | |
|---|
| 1 | MIPS_BINUTILS_DIR=/usr/local/mipsel/bin
|
|---|
| 2 | MIPS_TARGET=mipsel-linux-gnu
|
|---|
| 3 |
|
|---|
| 4 | .PHONY: nothing build
|
|---|
| 5 |
|
|---|
| 6 | nothing:
|
|---|
| 7 |
|
|---|
| 8 | build: boot.bin
|
|---|
| 9 | cp boot.bin ../../../src/load.bin
|
|---|
| 10 |
|
|---|
| 11 | AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
|
|---|
| 12 | CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc
|
|---|
| 13 | LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
|
|---|
| 14 |
|
|---|
| 15 | ASFLAGS=-mips2 -I../../../include
|
|---|
| 16 | LFLAGS=--oformat=binary -mips2 -e start
|
|---|
| 17 |
|
|---|
| 18 | .S.o:
|
|---|
| 19 | $(CC) $(ASFLAGS) -c -o $@ $<
|
|---|
| 20 |
|
|---|
| 21 | boot.bin: boot.o
|
|---|
| 22 | $(LD) $(LFLAGS) $< -o $@
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 | clean:
|
|---|
| 26 | -rm *.o *.bin
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.