Subversion Repositories HelenOS

Rev

Rev 2071 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2071 Rev 3911
Line 27... Line 27...
27
#
27
#
28
 
28
 
29
#include "regname.h"
29
#include "regname.h"
30
 
30
 
31
#define INITIAL_STACK 0x80040000
31
#define INITIAL_STACK        0x80040000
-
 
32
#define MSIM_DORDER_ADDRESS  0x90000004
32
 
33
 
33
.set noat
34
.set noat
34
.set noreorder
35
.set noreorder
35
.set nomacro
36
.set nomacro
36
 
37
 
37
.section BOOTSTRAP
38
.section BOOTSTRAP
38
 
39
 
39
.global start
40
.global start
40
start:
41
start:
-
 
42
	
-
 
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
-
 
51
	nop
-
 
52
	
-
 
53
	loop:
-
 
54
		j loop
-
 
55
		nop
-
 
56
	
-
 
57
#endif
-
 
58
	
-
 
59
	bsp:
-
 
60
		/* Setup initial stack */
41
	lui $sp, INITIAL_STACK >> 16
61
		lui $sp, INITIAL_STACK >> 16
42
	ori $sp, $sp, INITIAL_STACK & 0xffff
62
		ori $sp, $sp, INITIAL_STACK & 0xffff
43
	
63
		
44
	j bootstrap
64
		j bootstrap
45
	nop
65
		nop