Merge branch 'bkl-removal' into next
[linux-2.6] / arch / x86 / xen / xen-head.S
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 <linux/init.h>
8 #include <asm/boot.h>
9 #include <xen/interface/elfnote.h>
10 #include <asm/xen/interface.h>
11
12         __INIT
13 ENTRY(startup_xen)
14         movl %esi,xen_start_info
15         cld
16         movl $(init_thread_union+THREAD_SIZE),%esp
17         jmp xen_start_kernel
18
19         __FINIT
20
21 .pushsection .text
22         .align PAGE_SIZE_asm
23 ENTRY(hypercall_page)
24         .skip 0x1000
25 .popsection
26
27         ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS,       .asciz "linux")
28         ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION,  .asciz "2.6")
29         ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION,    .asciz "xen-3.0")
30         ELFNOTE(Xen, XEN_ELFNOTE_VIRT_BASE,      .long  __PAGE_OFFSET)
31         ELFNOTE(Xen, XEN_ELFNOTE_ENTRY,          .long  startup_xen)
32         ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, .long  hypercall_page)
33         ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz "!writable_page_tables|pae_pgdir_above_4gb")
34         ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE,       .asciz "yes")
35         ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz "generic")
36         ELFNOTE(Xen, XEN_ELFNOTE_L1_MFN_VALID,
37                 .quad _PAGE_PRESENT; .quad _PAGE_PRESENT)
38         ELFNOTE(Xen, XEN_ELFNOTE_SUSPEND_CANCEL, .long 1)
39         ELFNOTE(Xen, XEN_ELFNOTE_HV_START_LOW,   .long __HYPERVISOR_VIRT_START)
40
41 #endif /*CONFIG_XEN */