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