Subversion Repositories HelenOS

Rev

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

Rev 2927 Rev 4343
Line 38... Line 38...
38
	
38
	
39
	# switch to supervisor mode
39
	# switch to supervisor mode
40
	mrs r3, cpsr
40
	mrs r3, cpsr
41
	bic r3, r3, #0x1f
41
	bic r3, r3, #0x1f
42
	orr r3, r3, #0x13
42
	orr r3, r3, #0x13
43
	msr cpsr_c, r3	
43
	msr cpsr_c, r3
44
	
44
	
45
	ldr sp, =temp_stack
45
	ldr sp, =temp_stack
46
 
-
 
47
	cmp r2, #0
-
 
48
	beq bootinfo_end
-
 
49
 
-
 
50
	ldr r3, =bootinfo
-
 
51
 
-
 
52
	bootinfo_loop:
-
 
53
		ldr r4, [r1]
-
 
54
		str r4, [r3]
-
 
55
 
-
 
56
		add r1, r1, #4
-
 
57
		add r3, r3, #4
-
 
58
		add r2, r2, #-4
-
 
59
 
-
 
60
		cmp r2, #0
-
 
61
		bne bootinfo_loop
-
 
62
	
46
	
63
	bootinfo_end:
-
 
64
 
-
 
65
	bl arch_pre_main
47
	bl arch_pre_main
66
 
48
	
67
	bl main_bsp
49
	bl main_bsp
68
 
50
 
69
	.space TEMP_STACK_SIZE
51
	.space TEMP_STACK_SIZE
70
temp_stack:
52
temp_stack:
71
 
53
 
72
	.space 1024
54
	.space 1024
73
exc_stack:
55
exc_stack:
74
 
56
 
75
supervisor_sp:
57
supervisor_sp:
76
	.space 4
58
	.space 4
77
 
-