aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/xen/xen-head.S
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2007-10-11 05:16:51 -0400
committerThomas Gleixner <tglx@linutronix.de>2007-10-11 05:16:51 -0400
commit9702785a747aa27baf46ff504beab6528f21f2dd (patch)
treeab69d6f802f5b680c33999dc089e44982c74595d /arch/x86/xen/xen-head.S
parent334e621a01f86d5bc25e4f742e1eaae6e2d2a97a (diff)
i386: move xen
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/xen/xen-head.S')
-rw-r--r--arch/x86/xen/xen-head.S38
1 files changed, 38 insertions, 0 deletions
diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S
new file mode 100644
index 000000000000..f8d6937db2ec
--- /dev/null
+++ b/arch/x86/xen/xen-head.S
@@ -0,0 +1,38 @@
1/* Xen-specific pieces of head.S, intended to be included in the right
2 place in head.S */
3
4#ifdef CONFIG_XEN
5
6#include <linux/elfnote.h>
7#include <asm/boot.h>
8#include <xen/interface/elfnote.h>
9
10.pushsection .init.text
11ENTRY(startup_xen)
12 movl %esi,xen_start_info
13 cld
14 movl $(init_thread_union+THREAD_SIZE),%esp
15 jmp xen_start_kernel
16.popsection
17
18.pushsection .bss.page_aligned
19 .align PAGE_SIZE_asm
20ENTRY(hypercall_page)
21 .skip 0x1000
22.popsection
23
24 ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS, .asciz "linux")
25 ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION, .asciz "2.6")
26 ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION, .asciz "xen-3.0")
27 ELFNOTE(Xen, XEN_ELFNOTE_VIRT_BASE, .long __PAGE_OFFSET)
28 ELFNOTE(Xen, XEN_ELFNOTE_ENTRY, .long startup_xen)
29 ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .long hypercall_page)
30 ELFNOTE(Xen, XEN_ELFNOTE_FEATURES, .asciz "!writable_page_tables|pae_pgdir_above_4gb")
31#ifdef CONFIG_X86_PAE
32 ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE, .asciz "yes")
33#else
34 ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE, .asciz "no")
35#endif
36 ELFNOTE(Xen, XEN_ELFNOTE_LOADER, .asciz "generic")
37
38#endif /*CONFIG_XEN */