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