Subversion Repositories HelenOS

Rev

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

Rev 2155 Rev 2159
Line 1... Line 1...
1
#
1
#
2
# Copyright (c) 2003-2007 Jakub Jermar
2
# Copyright (c) 2007 Michal Kebrt
3
# All rights reserved.
3
# All rights reserved.
4
#
4
#
5
# Redistribution and use in source and binary forms, with or without
5
# Redistribution and use in source and binary forms, with or without
6
# modification, are permitted provided that the following conditions
6
# modification, are permitted provided that the following conditions
7
# are met:
7
# are met:
Line 24... Line 24...
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
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 <arch/asm/boot.h>
-
 
30
 
29
.text
31
.text
30
 
32
 
31
.global kernel_image_start
33
.global kernel_image_start
32
 
34
 
33
kernel_image_start:
35
kernel_image_start:
-
 
36
 
-
 
37
	ldr sp, =end_stack
-
 
38
	cmp r2, #0
-
 
39
	beq bootinfo_end
-
 
40
 
-
 
41
	ldr r3, =bootinfo
-
 
42
 
-
 
43
	bootinfo_loop:
-
 
44
		ldr r4, [r1]
-
 
45
		str r4, [r3]
-
 
46
 
-
 
47
		add r1, r1, #4
-
 
48
		add r3, r3, #4
-
 
49
		add r2, r2, #-4
-
 
50
 
-
 
51
		cmp r2, #0
-
 
52
		bne bootinfo_loop
-
 
53
	
-
 
54
	bootinfo_end:
-
 
55
 
-
 
56
	bl arch_pre_main
-
 
57
 
-
 
58
	b halt
-
 
59
 
-
 
60
 
34
	/* halt the simulator */
61
	.space TEMP_STACK_SIZE
-
 
62
end_stack:
-
 
63
 
-
 
64
halt:
35
	ldr r0,=0x10000010
65
	ldr r0,=0x10000010
36
	ldr r1, [r0]
66
	ldr r1, [r0]
37
	b kernel_image_start
67
	b halt
-
 
68