Changeset e84439a in mainline for arch/mips/boot
- Timestamp:
- 2005-09-06T08:51:22Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e949fd6
- Parents:
- 39ae77b
- Location:
- arch/mips/boot
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
arch/mips/boot/Makefile
r39ae77b re84439a 10 10 11 11 AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as 12 CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc 12 13 LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld 13 14 14 ASFLAGS=-mips2 15 ASFLAGS=-mips2 -I../../../include 15 16 LFLAGS=--oformat=binary -mips2 -e start 16 17 18 .S.o: 19 $(CC) $(ASFLAGS) -c -o $@ $< 20 17 21 boot.bin: boot.o 18 $(LD) $(LFLAGS) boot.o-o $@22 $(LD) $(LFLAGS) $< -o $@ 19 23 20 boot.o:21 $(AS) boot.s -o $@22 24 23 25 clean: -
arch/mips/boot/boot.S
r39ae77b re84439a 33 33 .set nomacro 34 34 35 #include <arch/asm/boot.h> 36 35 37 .global start 36 38 start: 37 # move 0x80000000 to reg $838 lui $8, 0x800039 lui $ra, KERNEL_STARTUP_ADDRESS >> 16 40 ori $ra, KERNEL_STARTUP_ADDRESS & 0xffff 39 41 40 # prepare stack 41 lui $29, 0x8100 42 43 j $8 42 j $ra 44 43 nop
Note:
See TracChangeset
for help on using the changeset viewer.