This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / x86_64 / kernel / x8664_ksyms-xen.c
1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/smp.h>
4 #include <linux/user.h>
5 #include <linux/sched.h>
6 #include <linux/in6.h>
7 #include <linux/interrupt.h>
8 #include <linux/smp_lock.h>
9 #include <linux/pm.h>
10 #include <linux/pci.h>
11 #include <linux/apm_bios.h>
12 #include <linux/kernel.h>
13 #include <linux/string.h>
14 #include <linux/syscalls.h>
15 #include <linux/tty.h>
16
17 #include <asm/semaphore.h>
18 #include <asm/processor.h>
19 #include <asm/i387.h>
20 #include <asm/uaccess.h>
21 #include <asm/checksum.h>
22 #include <asm/io.h>
23 #include <asm/delay.h>
24 #include <asm/irq.h>
25 #include <asm/mmx.h>
26 #include <asm/desc.h>
27 #include <asm/pgtable.h>
28 #include <asm/pgalloc.h>
29 #include <asm/nmi.h>
30 #include <asm/kdebug.h>
31 #include <asm/unistd.h>
32 #include <asm/tlbflush.h>
33 #include <asm/kdebug.h>
34
35 #ifdef CONFIG_SMP
36 extern void __write_lock_failed(rwlock_t *rw);
37 extern void __read_lock_failed(rwlock_t *rw);
38 #endif
39
40 /* platform dependent support */
41 EXPORT_SYMBOL(boot_cpu_data);
42 //EXPORT_SYMBOL(dump_fpu);
43 EXPORT_SYMBOL(kernel_thread);
44 EXPORT_SYMBOL(pm_idle);
45 EXPORT_SYMBOL(pm_power_off);
46
47 EXPORT_SYMBOL(__down_failed);
48 EXPORT_SYMBOL(__down_failed_interruptible);
49 EXPORT_SYMBOL(__down_failed_trylock);
50 EXPORT_SYMBOL(__up_wakeup);
51 /* Networking helper routines. */
52 EXPORT_SYMBOL(csum_partial_copy_nocheck);
53 EXPORT_SYMBOL(ip_compute_csum);
54 /* Delay loops */
55 EXPORT_SYMBOL(__udelay);
56 EXPORT_SYMBOL(__ndelay);
57 EXPORT_SYMBOL(__delay);
58 EXPORT_SYMBOL(__const_udelay);
59
60 EXPORT_SYMBOL(__get_user_1);
61 EXPORT_SYMBOL(__get_user_2);
62 EXPORT_SYMBOL(__get_user_4);
63 EXPORT_SYMBOL(__get_user_8);
64 EXPORT_SYMBOL(__put_user_1);
65 EXPORT_SYMBOL(__put_user_2);
66 EXPORT_SYMBOL(__put_user_4);
67 EXPORT_SYMBOL(__put_user_8);
68
69 EXPORT_SYMBOL(strncpy_from_user);
70 EXPORT_SYMBOL(__strncpy_from_user);
71 EXPORT_SYMBOL(clear_user);
72 EXPORT_SYMBOL(__clear_user);
73 EXPORT_SYMBOL(copy_user_generic);
74 EXPORT_SYMBOL(copy_from_user);
75 EXPORT_SYMBOL(copy_to_user);
76 EXPORT_SYMBOL(copy_in_user);
77 EXPORT_SYMBOL(strnlen_user);
78
79 #ifdef CONFIG_PCI
80 EXPORT_SYMBOL(pci_mem_start);
81 #endif
82
83 EXPORT_SYMBOL(copy_page);
84 EXPORT_SYMBOL(clear_page);
85
86 EXPORT_SYMBOL(_cpu_pda);
87 #ifdef CONFIG_SMP
88 EXPORT_SYMBOL(__write_lock_failed);
89 EXPORT_SYMBOL(__read_lock_failed);
90
91 EXPORT_SYMBOL(smp_call_function);
92 #endif
93
94 #ifdef CONFIG_VT
95 EXPORT_SYMBOL(screen_info);
96 #endif
97
98 #ifdef CONFIG_X86_LOCAL_APIC
99 EXPORT_SYMBOL_GPL(set_nmi_callback);
100 EXPORT_SYMBOL_GPL(unset_nmi_callback);
101 #endif
102
103 /* Export string functions. We normally rely on gcc builtin for most of these,
104    but gcc sometimes decides not to inline them. */    
105 #undef memcpy
106 #undef memset
107 #undef memmove
108
109 extern void * memset(void *,int,__kernel_size_t);
110 extern size_t strlen(const char *);
111 extern void * memmove(void * dest,const void *src,size_t count);
112 extern void * memcpy(void *,const void *,__kernel_size_t);
113 extern void * __memcpy(void *,const void *,__kernel_size_t);
114
115 EXPORT_SYMBOL(memset);
116 EXPORT_SYMBOL(memmove);
117 EXPORT_SYMBOL(memcpy);
118 EXPORT_SYMBOL(__memcpy);
119
120 #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
121 /* prototypes are wrong, these are assembly with custom calling functions */
122 extern void rwsem_down_read_failed_thunk(void);
123 extern void rwsem_wake_thunk(void);
124 extern void rwsem_downgrade_thunk(void);
125 extern void rwsem_down_write_failed_thunk(void);
126 EXPORT_SYMBOL(rwsem_down_read_failed_thunk);
127 EXPORT_SYMBOL(rwsem_wake_thunk);
128 EXPORT_SYMBOL(rwsem_downgrade_thunk);
129 EXPORT_SYMBOL(rwsem_down_write_failed_thunk);
130 #endif
131
132 EXPORT_SYMBOL(empty_zero_page);
133
134 EXPORT_SYMBOL(die_chain);
135
136 #ifdef CONFIG_SMP
137 EXPORT_SYMBOL(cpu_sibling_map);
138 EXPORT_SYMBOL(smp_num_siblings);
139 #endif
140
141 #ifdef CONFIG_BUG
142 EXPORT_SYMBOL(out_of_line_bug);
143 #endif
144
145 EXPORT_SYMBOL(init_level4_pgt);
146
147 extern unsigned long __supported_pte_mask;
148 EXPORT_SYMBOL(__supported_pte_mask);
149
150 #ifdef CONFIG_SMP
151 EXPORT_SYMBOL(flush_tlb_page);
152 #endif
153
154 EXPORT_SYMBOL(load_gs_index);
155