Subversion Repositories HelenOS

Rev

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

Rev 1821 Rev 1824
Line 30... Line 30...
30
#include <arch/boot/boot.h>
30
#include <arch/boot/boot.h>
31
#include <arch/mm/page.h>
31
#include <arch/mm/page.h>
32
#include <arch/pm.h>
32
#include <arch/pm.h>
33
 
33
 
34
.section __xen_guest
34
.section __xen_guest
35
	.ascii  "GUEST_OS=HelenOS,"
35
	.ascii "GUEST_OS=HelenOS,"
36
	.ascii  "XEN_VER=xen-3.0,"
36
	.ascii "XEN_VER=xen-3.0,"
37
	.ascii  "HYPERCALL_PAGE=0x0000,"
37
	.ascii "HYPERCALL_PAGE=0x0000,"
38
	.ascii  "LOADER=generic"
38
	.ascii "LOADER=generic,"
-
 
39
	.ascii "FEATURES=writable_page_tables"
39
	.byte   0
40
	.byte   0
40
 
41
 
41
.text
42
.text
42
 
43
 
43
.code32
44
.code32
Line 49... Line 50...
49
	
50
	
50
	movl $start_info, %edi
51
	movl $start_info, %edi
51
	movl $START_INFO_SIZE >> 2, %ecx
52
	movl $START_INFO_SIZE >> 2, %ecx
52
	cld
53
	cld
53
	rep movsb
54
	rep movsb
-
 
55
	
-
 
56
	# switch to temporal kernel stack
-
 
57
	
-
 
58
	movl $kernel_stack, %esp
54
 
59
	
-
 
60
	call arch_pre_main
55
	call main_bsp								# never returns
61
	call main_bsp								# never returns
56
 
62
 
57
	cli
63
	cli
58
	hlt
64
	hlt
59
 
65
 
-
 
66
kernel_stack_bottom:
-
 
67
	.space TEMP_STACK_SIZE
-
 
68
kernel_stack:
-
 
69
 
60
.section K_TEXT_START, "aw", @progbits
70
.section K_TEXT_START, "aw", @progbits
61
.global hypercall_page
71
.global hypercall_page
62
.org 0
72
.org 0
63
hypercall_page:
73
hypercall_page:
64
	.space PAGE_SIZE
74
	.space PAGE_SIZE
-
 
75
 
-
 
76
.global shared_info
-
 
77
.org 0x1000
-
 
78
shared_info:
-
 
79
	.space PAGE_SIZE