tuntap: switch to use rtnl_dereference()
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / arch / x86 / xen / xen-head.S
blob7faed5869e5bf215cafe4c0fdbe24ba38fcd66d0
1 /* Xen-specific pieces of head.S, intended to be included in the right
2         place in head.S */
4 #ifdef CONFIG_XEN
6 #include <linux/elfnote.h>
7 #include <linux/init.h>
9 #include <asm/boot.h>
10 #include <asm/asm.h>
11 #include <asm/page_types.h>
13 #include <xen/interface/elfnote.h>
14 #include <asm/xen/interface.h>
16         __INIT
17 ENTRY(startup_xen)
18         cld
19 #ifdef CONFIG_X86_32
20         mov %esi,xen_start_info
21         mov $init_thread_union+THREAD_SIZE,%esp
22 #else
23         mov %rsi,xen_start_info
24         mov $init_thread_union+THREAD_SIZE,%rsp
25 #endif
26         jmp xen_start_kernel
28         __FINIT
30 .pushsection .text
31         .balign PAGE_SIZE
32 ENTRY(hypercall_page)
33 #define NEXT_HYPERCALL(x) \
34         ENTRY(xen_hypercall_##x) \
35         .skip 32
37 NEXT_HYPERCALL(set_trap_table)
38 NEXT_HYPERCALL(mmu_update)
39 NEXT_HYPERCALL(set_gdt)
40 NEXT_HYPERCALL(stack_switch)
41 NEXT_HYPERCALL(set_callbacks)
42 NEXT_HYPERCALL(fpu_taskswitch)
43 NEXT_HYPERCALL(sched_op_compat)
44 NEXT_HYPERCALL(platform_op)
45 NEXT_HYPERCALL(set_debugreg)
46 NEXT_HYPERCALL(get_debugreg)
47 NEXT_HYPERCALL(update_descriptor)
48 NEXT_HYPERCALL(ni)
49 NEXT_HYPERCALL(memory_op)
50 NEXT_HYPERCALL(multicall)
51 NEXT_HYPERCALL(update_va_mapping)
52 NEXT_HYPERCALL(set_timer_op)
53 NEXT_HYPERCALL(event_channel_op_compat)
54 NEXT_HYPERCALL(xen_version)
55 NEXT_HYPERCALL(console_io)
56 NEXT_HYPERCALL(physdev_op_compat)
57 NEXT_HYPERCALL(grant_table_op)
58 NEXT_HYPERCALL(vm_assist)
59 NEXT_HYPERCALL(update_va_mapping_otherdomain)
60 NEXT_HYPERCALL(iret)
61 NEXT_HYPERCALL(vcpu_op)
62 NEXT_HYPERCALL(set_segment_base)
63 NEXT_HYPERCALL(mmuext_op)
64 NEXT_HYPERCALL(xsm_op)
65 NEXT_HYPERCALL(nmi_op)
66 NEXT_HYPERCALL(sched_op)
67 NEXT_HYPERCALL(callback_op)
68 NEXT_HYPERCALL(xenoprof_op)
69 NEXT_HYPERCALL(event_channel_op)
70 NEXT_HYPERCALL(physdev_op)
71 NEXT_HYPERCALL(hvm_op)
72 NEXT_HYPERCALL(sysctl)
73 NEXT_HYPERCALL(domctl)
74 NEXT_HYPERCALL(kexec_op)
75 NEXT_HYPERCALL(tmem_op) /* 38 */
76 ENTRY(xen_hypercall_rsvr)
77         .skip 320
78 NEXT_HYPERCALL(mca) /* 48 */
79 NEXT_HYPERCALL(arch_1)
80 NEXT_HYPERCALL(arch_2)
81 NEXT_HYPERCALL(arch_3)
82 NEXT_HYPERCALL(arch_4)
83 NEXT_HYPERCALL(arch_5)
84 NEXT_HYPERCALL(arch_6)
85         .balign PAGE_SIZE
86 .popsection
88         ELFNOTE(Xen, XEN_ELFNOTE_GUEST_OS,       .asciz "linux")
89         ELFNOTE(Xen, XEN_ELFNOTE_GUEST_VERSION,  .asciz "2.6")
90         ELFNOTE(Xen, XEN_ELFNOTE_XEN_VERSION,    .asciz "xen-3.0")
91 #ifdef CONFIG_X86_32
92         ELFNOTE(Xen, XEN_ELFNOTE_VIRT_BASE,      _ASM_PTR __PAGE_OFFSET)
93 #else
94         ELFNOTE(Xen, XEN_ELFNOTE_VIRT_BASE,      _ASM_PTR __START_KERNEL_map)
95 #endif
96         ELFNOTE(Xen, XEN_ELFNOTE_ENTRY,          _ASM_PTR startup_xen)
97         ELFNOTE(Xen, XEN_ELFNOTE_HYPERCALL_PAGE, _ASM_PTR hypercall_page)
98         ELFNOTE(Xen, XEN_ELFNOTE_FEATURES,       .asciz "!writable_page_tables|pae_pgdir_above_4gb")
99         ELFNOTE(Xen, XEN_ELFNOTE_PAE_MODE,       .asciz "yes")
100         ELFNOTE(Xen, XEN_ELFNOTE_LOADER,         .asciz "generic")
101         ELFNOTE(Xen, XEN_ELFNOTE_L1_MFN_VALID,
102                 .quad _PAGE_PRESENT; .quad _PAGE_PRESENT)
103         ELFNOTE(Xen, XEN_ELFNOTE_SUSPEND_CANCEL, .long 1)
104         ELFNOTE(Xen, XEN_ELFNOTE_HV_START_LOW,   _ASM_PTR __HYPERVISOR_VIRT_START)
105         ELFNOTE(Xen, XEN_ELFNOTE_PADDR_OFFSET,   _ASM_PTR 0)
107 #endif /*CONFIG_XEN */