Automatic merge of /spare/repo/netdev-2.6 branch we18
[linux-2.6] / 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/tlbflush.h>
34 #include <asm/kdebug.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(pci_mem_start);
107 #endif
108
109 EXPORT_SYMBOL(copy_page);
110 EXPORT_SYMBOL(clear_page);
111
112 EXPORT_SYMBOL(cpu_pda);
113 #ifdef CONFIG_SMP
114 EXPORT_SYMBOL(cpu_data);
115 EXPORT_SYMBOL(cpu_online_map);
116 EXPORT_SYMBOL(__write_lock_failed);
117 EXPORT_SYMBOL(__read_lock_failed);
118
119 EXPORT_SYMBOL(synchronize_irq);
120 EXPORT_SYMBOL(smp_call_function);
121 EXPORT_SYMBOL(cpu_callout_map);
122 #endif
123
124 #ifdef CONFIG_VT
125 EXPORT_SYMBOL(screen_info);
126 #endif
127
128 EXPORT_SYMBOL(get_wchan);
129
130 EXPORT_SYMBOL(rtc_lock);
131
132 EXPORT_SYMBOL_GPL(set_nmi_callback);
133 EXPORT_SYMBOL_GPL(unset_nmi_callback);
134
135 /* Export string functions. We normally rely on gcc builtin for most of these,
136    but gcc sometimes decides not to inline them. */    
137 #undef memcpy
138 #undef memset
139 #undef memmove
140 #undef memchr
141 #undef strlen
142 #undef strncmp
143 #undef strncpy
144 #undef strchr   
145
146 extern void * memset(void *,int,__kernel_size_t);
147 extern size_t strlen(const char *);
148 extern void * memmove(void * dest,const void *src,size_t count);
149 extern void *memchr(const void *s, int c, size_t n);
150 extern void * memcpy(void *,const void *,__kernel_size_t);
151 extern void * __memcpy(void *,const void *,__kernel_size_t);
152
153 EXPORT_SYMBOL(memset);
154 EXPORT_SYMBOL(strlen);
155 EXPORT_SYMBOL(memmove);
156 EXPORT_SYMBOL(strncmp);
157 EXPORT_SYMBOL(strncpy);
158 EXPORT_SYMBOL(strchr);
159 EXPORT_SYMBOL(strncat);
160 EXPORT_SYMBOL(memchr);
161 EXPORT_SYMBOL(strrchr);
162 EXPORT_SYMBOL(strnlen);
163 EXPORT_SYMBOL(memscan);
164 EXPORT_SYMBOL(memcpy);
165 EXPORT_SYMBOL(__memcpy);
166
167 #ifdef CONFIG_RWSEM_XCHGADD_ALGORITHM
168 /* prototypes are wrong, these are assembly with custom calling functions */
169 extern void rwsem_down_read_failed_thunk(void);
170 extern void rwsem_wake_thunk(void);
171 extern void rwsem_downgrade_thunk(void);
172 extern void rwsem_down_write_failed_thunk(void);
173 EXPORT_SYMBOL(rwsem_down_read_failed_thunk);
174 EXPORT_SYMBOL(rwsem_wake_thunk);
175 EXPORT_SYMBOL(rwsem_downgrade_thunk);
176 EXPORT_SYMBOL(rwsem_down_write_failed_thunk);
177 #endif
178
179 EXPORT_SYMBOL(empty_zero_page);
180
181 #ifdef CONFIG_HAVE_DEC_LOCK
182 EXPORT_SYMBOL(_atomic_dec_and_lock);
183 #endif
184
185 EXPORT_SYMBOL(die_chain);
186 EXPORT_SYMBOL(register_die_notifier);
187
188 #ifdef CONFIG_SMP
189 EXPORT_SYMBOL(cpu_sibling_map);
190 EXPORT_SYMBOL(smp_num_siblings);
191 #endif
192
193 extern void do_softirq_thunk(void);
194 EXPORT_SYMBOL(do_softirq_thunk);
195
196 #ifdef CONFIG_BUG
197 EXPORT_SYMBOL(out_of_line_bug);
198 #endif
199
200 EXPORT_SYMBOL(init_level4_pgt);
201
202 extern unsigned long __supported_pte_mask;
203 EXPORT_SYMBOL(__supported_pte_mask);
204
205 #ifdef CONFIG_SMP
206 EXPORT_SYMBOL(flush_tlb_page);
207 #endif
208
209 EXPORT_SYMBOL(cpu_khz);