vserver 1.9.3
[linux-2.6.git] / arch / x86_64 / kernel / x8664_ksyms.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 #include <linux/ioctl32.h>
17
18 #include <asm/semaphore.h>
19 #include <asm/processor.h>
20 #include <asm/i387.h>
21 #include <asm/uaccess.h>
22 #include <asm/checksum.h>
23 #include <asm/io.h>
24 #include <asm/delay.h>
25 #include <asm/irq.h>
26 #include <asm/mmx.h>
27 #include <asm/desc.h>
28 #include <asm/pgtable.h>
29 #include <asm/pgalloc.h>
30 #include <asm/nmi.h>
31 #include <asm/kdebug.h>
32 #include <asm/unistd.h>
33 #include <asm/delay.h>
34 #include <asm/tlbflush.h>
35
36 extern spinlock_t rtc_lock;
37
38 #ifdef CONFIG_SMP
39 extern void __write_lock_failed(rwlock_t *rw);
40 extern void __read_lock_failed(rwlock_t *rw);
41 #endif
42
43 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_HD) || defined(CONFIG_BLK_DEV_IDE_MODULE) || defined(CONFIG_BLK_DEV_HD_MODULE)
44 extern struct drive_info_struct drive_info;
45 EXPORT_SYMBOL(drive_info);
46 #endif
47
48 extern unsigned long get_cmos_time(void);
49
50 /* platform dependent support */
51 EXPORT_SYMBOL(boot_cpu_data);
52 //EXPORT_SYMBOL(dump_fpu);
53 EXPORT_SYMBOL(__ioremap);
54 EXPORT_SYMBOL(ioremap_nocache);
55 EXPORT_SYMBOL(iounmap);
56 EXPORT_SYMBOL(enable_irq);
57 EXPORT_SYMBOL(disable_irq);
58 EXPORT_SYMBOL(disable_irq_nosync);
59 EXPORT_SYMBOL(probe_irq_mask);
60 EXPORT_SYMBOL(kernel_thread);
61 EXPORT_SYMBOL(pm_idle);
62 EXPORT_SYMBOL(pm_power_off);
63 EXPORT_SYMBOL(get_cmos_time);
64
65 EXPORT_SYMBOL(__down_failed);
66 EXPORT_SYMBOL(__down_failed_interruptible);
67 EXPORT_SYMBOL(__down_failed_trylock);
68 EXPORT_SYMBOL(__up_wakeup);
69 /* Networking helper routines. */
70 EXPORT_SYMBOL(csum_partial_copy_nocheck);
71 EXPORT_SYMBOL(ip_compute_csum);
72 /* Delay loops */
73 EXPORT_SYMBOL(__udelay);
74 EXPORT_SYMBOL(__ndelay);
75 EXPORT_SYMBOL(__delay);
76 EXPORT_SYMBOL(__const_udelay);
77
78 EXPORT_SYMBOL(__get_user_1);
79 EXPORT_SYMBOL(__get_user_2);
80 EXPORT_SYMBOL(__get_user_4);
81 EXPORT_SYMBOL(__get_user_8);
82 EXPORT_SYMBOL(__put_user_1);
83 EXPORT_SYMBOL(__put_user_2);
84 EXPORT_SYMBOL(__put_user_4);
85 EXPORT_SYMBOL(__put_user_8);
86
87 EXPORT_SYMBOL(strpbrk);
88 EXPORT_SYMBOL(strstr);
89
90 EXPORT_SYMBOL(strncpy_from_user);
91 EXPORT_SYMBOL(__strncpy_from_user);
92 EXPORT_SYMBOL(clear_user);
93 EXPORT_SYMBOL(__clear_user);
94 EXPORT_SYMBOL(copy_user_generic);
95 EXPORT_SYMBOL(copy_from_user);
96 EXPORT_SYMBOL(copy_to_user);
97 EXPORT_SYMBOL(copy_in_user);
98 EXPORT_SYMBOL(strnlen_user);
99
100 #ifdef CONFIG_PCI
101 EXPORT_SYMBOL(pci_alloc_consistent);
102 EXPORT_SYMBOL(pci_free_consistent);
103 #endif
104
105 #ifdef CONFIG_PCI
106 EXPORT_SYMBOL(pcibios_penalize_isa_irq);
107 EXPORT_SYMBOL(pci_mem_start);
108 #endif
109
110 EXPORT_SYMBOL(copy_page);
111 EXPORT_SYMBOL(clear_page);
112
113 EXPORT_SYMBOL(cpu_pda);
114 #ifdef CONFIG_SMP
115 EXPORT_SYMBOL(cpu_data);
116 EXPORT_SYMBOL(cpu_online_map);
117 EXPORT_SYMBOL(__write_lock_failed);
118 EXPORT_SYMBOL(__read_lock_failed);
119
120 EXPORT_SYMBOL(synchronize_irq);
121 EXPORT_SYMBOL(smp_call_function);
122 EXPORT_SYMBOL(cpu_callout_map);
123 #endif
124
125 #ifdef CONFIG_VT
126 EXPORT_SYMBOL(screen_info);
127 #endif
128
129 EXPORT_SYMBOL(get_wchan);
130
131 EXPORT_SYMBOL(rtc_lock);
132
133 EXPORT_SYMBOL_GPL(set_nmi_callback);
134 EXPORT_SYMBOL_GPL(unset_nmi_callback);
135
136 /* Export string functions. We normally rely on gcc builtin for most of these,
137    but gcc sometimes decides not to inline them. */    
138 #undef memcpy
139 #undef memset
140 #undef memmove
141 #undef memchr
142 #undef strlen
143 #undef strcpy
144 #undef strncmp
145 #undef strncpy
146 #undef strchr   
147 #undef strcmp 
148 #undef strcpy 
149 #undef strcat
150 #undef memcmp
151
152 extern void * memset(void *,int,__kernel_size_t);
153 extern size_t strlen(const char *);
154 extern void * memmove(void * dest,const void *src,size_t count);
155 extern char * strcpy(char * dest,const char *src);
156 extern int strcmp(const char * cs,const char * ct);
157 extern void *memchr(const void *s, int c, size_t n);
158 extern void * memcpy(void *,const void *,__kernel_size_t);
159 extern void * __memcpy(void *,const void *,__kernel_size_t);
160 extern char * strcat(char *, const char *);
161 extern int memcmp(const void * cs,const void * ct,size_t count);
162
163 EXPORT_SYMBOL(memset);
164 EXPORT_SYMBOL(strlen);
165 EXPORT_SYMBOL(memmove);
166 EXPORT_SYMBOL(strcpy);
167 EXPORT_SYMBOL(strncmp);
168 EXPORT_SYMBOL(strncpy);
169 EXPORT_SYMBOL(strchr);
170 EXPORT_SYMBOL(strcmp);
171 EXPORT_SYMBOL(strcat);
172 EXPORT_SYMBOL(strncat);
173 EXPORT_SYMBOL(memchr);
174 EXPORT_SYMBOL(strrchr);
175 EXPORT_SYMBOL(strnlen);
176 EXPORT_SYMBOL(memscan);
177 EXPORT_SYMBOL(memcpy);
178 EXPORT_SYMBOL(__memcpy);
179 EXPORT_SYMBOL(memcmp);
180
181 #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
182 /* prototypes are wrong, these are assembly with custom calling functions */
183 extern void rwsem_down_read_failed_thunk(void);
184 extern void rwsem_wake_thunk(void);
185 extern void rwsem_downgrade_thunk(void);
186 extern void rwsem_down_write_failed_thunk(void);
187 EXPORT_SYMBOL(rwsem_down_read_failed_thunk);
188 EXPORT_SYMBOL(rwsem_wake_thunk);
189 EXPORT_SYMBOL(rwsem_downgrade_thunk);
190 EXPORT_SYMBOL(rwsem_down_write_failed_thunk);
191 #endif
192
193 EXPORT_SYMBOL(empty_zero_page);
194
195 #ifdef CONFIG_HAVE_DEC_LOCK
196 EXPORT_SYMBOL(atomic_dec_and_lock);
197 #endif
198
199 EXPORT_SYMBOL(die_chain);
200
201 #ifdef CONFIG_SMP
202 EXPORT_SYMBOL(cpu_sibling_map);
203 EXPORT_SYMBOL(smp_num_siblings);
204 #endif
205
206 extern void do_softirq_thunk(void);
207 EXPORT_SYMBOL(do_softirq_thunk);
208
209 void out_of_line_bug(void);
210 EXPORT_SYMBOL(out_of_line_bug);
211
212 EXPORT_SYMBOL(init_level4_pgt);
213
214 extern unsigned long __supported_pte_mask;
215 EXPORT_SYMBOL(__supported_pte_mask);
216
217 #ifdef CONFIG_SMP
218 EXPORT_SYMBOL(flush_tlb_page);
219 EXPORT_SYMBOL_GPL(flush_tlb_all);
220 #endif
221
222 EXPORT_SYMBOL(cpu_khz);