Subversion Repositories HelenOS

Rev

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

Rev 2071 Rev 3911
Line 26... Line 26...
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
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:
41
	lui $sp, INITIAL_STACK >> 16
-
 
42
	ori $sp, $sp, INITIAL_STACK & 0xffff
-
 
43
	
42
	
-
 
43
#ifdef MACHINE_msim
-
 
44
	/* Read dorder value */
-
 
45
	la $k0, MSIM_DORDER_ADDRESS
44
	j bootstrap
46
	lw $k0, ($k0)
-
 
47
	
-
 
48
	/* If we are not running on BSP
-
 
49
	   end in an infinite loop  */
-
 
50
	beq $k0, $zero, bsp
45
	nop
51
	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