Changeset e84439a in mainline for arch/mips/boot


Ignore:
Timestamp:
2005-09-06T08:51:22Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e949fd6
Parents:
39ae77b
Message:

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.

Location:
arch/mips/boot
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • arch/mips/boot/Makefile

    r39ae77b re84439a  
    1010
    1111AS=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-as
     12CC=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-gcc
    1213LD=$(MIPS_BINUTILS_DIR)/$(MIPS_TARGET)-ld
    1314
    14 ASFLAGS=-mips2
     15ASFLAGS=-mips2 -I../../../include
    1516LFLAGS=--oformat=binary -mips2 -e start
    1617
     18.S.o:
     19        $(CC) $(ASFLAGS) -c -o $@ $<
     20
    1721boot.bin: boot.o
    18         $(LD) $(LFLAGS) boot.o -o $@
     22        $(LD) $(LFLAGS) $< -o $@
    1923
    20 boot.o:
    21         $(AS) boot.s -o $@
    2224
    2325clean:
  • arch/mips/boot/boot.S

    r39ae77b re84439a  
    3333.set nomacro
    3434
     35#include <arch/asm/boot.h>
     36       
    3537.global start
    3638start:
    37         # move 0x80000000 to reg $8
    38         lui $8, 0x8000
     39        lui     $ra, KERNEL_STARTUP_ADDRESS >> 16
     40        ori     $ra, KERNEL_STARTUP_ADDRESS & 0xffff
    3941
    40         # prepare stack
    41         lui $29, 0x8100
    42 
    43         j $8
     42        j $ra
    4443        nop
Note: See TracChangeset for help on using the changeset viewer.