Changeset 85156d3 in mainline for boot/arch/mips32/loader/boot.S


Ignore:
Timestamp:
2009-02-17T00:50:49Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7f341820
Parents:
e94f730
Message:

dummy SMP support in msim

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/mips32/loader/boot.S

    re94f730 r85156d3  
    2929#include "regname.h"
    3030
    31 #define INITIAL_STACK 0x80040000
     31#define INITIAL_STACK        0x80040000
     32#define MSIM_DORDER_ADDRESS  0x90000004
    3233
    3334.set noat
     
    3940.global start
    4041start:
    41         lui $sp, INITIAL_STACK >> 16
    42         ori $sp, $sp, INITIAL_STACK & 0xffff
    4342       
    44         j bootstrap
     43#ifdef MACHINE_msim
     44        /* Read dorder value */
     45        la $k0, MSIM_DORDER_ADDRESS
     46        lw $k0, ($k0)
     47       
     48        /* If we are not running on BSP
     49           end in an infinite loop  */
     50        beq $k0, $zero, bsp
    4551        nop
     52       
     53        loop:
     54                j loop
     55                nop
     56       
     57#endif
     58       
     59        bsp:
     60                /* Setup initial stack */
     61                lui $sp, INITIAL_STACK >> 16
     62                ori $sp, $sp, INITIAL_STACK & 0xffff
     63               
     64                j bootstrap
     65                nop
Note: See TracChangeset for help on using the changeset viewer.