Changeset 85156d3 in mainline


Ignore:
Timestamp:
2009-02-17T00:50:49Z (15 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

Files:
2 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
  • contrib/conf/msim.conf

    re94f730 r85156d3  
    44
    55add dcpu cpu0
     6add dcpu cpu1
    67
    78add rwm mainmem 0x00000000
     
    1112add rom bootmem 0x1fc00000
    1213bootmem generic 4096k
    13 bootmem load "image.boot" 
     14bootmem load "image.boot"
    1415
    1516add dprinter printer 0x10000000
Note: See TracChangeset for help on using the changeset viewer.