[PATCH] ppc: last_task_.... is defined only on non-SMP
[linux-3.10.git] / arch / ppc / kernel / ppc_ksyms.c
1 #include <linux/config.h>
2 #include <linux/module.h>
3 #include <linux/threads.h>
4 #include <linux/smp.h>
5 #include <linux/sched.h>
6 #include <linux/elfcore.h>
7 #include <linux/string.h>
8 #include <linux/interrupt.h>
9 #include <linux/tty.h>
10 #include <linux/vt_kern.h>
11 #include <linux/nvram.h>
12 #include <linux/console.h>
13 #include <linux/irq.h>
14 #include <linux/pci.h>
15 #include <linux/delay.h>
16 #include <linux/ide.h>
17 #include <linux/pm.h>
18 #include <linux/bitops.h>
19
20 #include <asm/page.h>
21 #include <asm/semaphore.h>
22 #include <asm/processor.h>
23 #include <asm/uaccess.h>
24 #include <asm/io.h>
25 #include <asm/ide.h>
26 #include <asm/atomic.h>
27 #include <asm/checksum.h>
28 #include <asm/pgtable.h>
29 #include <asm/tlbflush.h>
30 #include <linux/adb.h>
31 #include <linux/cuda.h>
32 #include <linux/pmu.h>
33 #include <asm/prom.h>
34 #include <asm/system.h>
35 #include <asm/pci-bridge.h>
36 #include <asm/irq.h>
37 #include <asm/dma.h>
38 #include <asm/machdep.h>
39 #include <asm/hw_irq.h>
40 #include <asm/nvram.h>
41 #include <asm/mmu_context.h>
42 #include <asm/backlight.h>
43 #include <asm/time.h>
44 #include <asm/cputable.h>
45 #include <asm/btext.h>
46 #include <asm/div64.h>
47 #include <asm/xmon.h>
48 #include <asm/signal.h>
49
50 #ifdef  CONFIG_8xx
51 #include <asm/commproc.h>
52 #endif
53
54 extern void transfer_to_handler(void);
55 extern void do_IRQ(struct pt_regs *regs);
56 extern void machine_check_exception(struct pt_regs *regs);
57 extern void alignment_exception(struct pt_regs *regs);
58 extern void program_check_exception(struct pt_regs *regs);
59 extern void single_step_exception(struct pt_regs *regs);
60 extern int sys_sigreturn(struct pt_regs *regs);
61
62 long long __ashrdi3(long long, int);
63 long long __ashldi3(long long, int);
64 long long __lshrdi3(long long, int);
65
66 extern unsigned long mm_ptov (unsigned long paddr);
67
68 EXPORT_SYMBOL(clear_pages);
69 EXPORT_SYMBOL(clear_user_page);
70 EXPORT_SYMBOL(do_signal);
71 EXPORT_SYMBOL(transfer_to_handler);
72 EXPORT_SYMBOL(do_IRQ);
73 EXPORT_SYMBOL(machine_check_exception);
74 EXPORT_SYMBOL(alignment_exception);
75 EXPORT_SYMBOL(program_check_exception);
76 EXPORT_SYMBOL(single_step_exception);
77 EXPORT_SYMBOL(sys_sigreturn);
78 EXPORT_SYMBOL(ppc_n_lost_interrupts);
79
80 EXPORT_SYMBOL(ISA_DMA_THRESHOLD);
81 EXPORT_SYMBOL(DMA_MODE_READ);
82 EXPORT_SYMBOL(DMA_MODE_WRITE);
83
84 #if !defined(__INLINE_BITOPS)
85 EXPORT_SYMBOL(set_bit);
86 EXPORT_SYMBOL(clear_bit);
87 EXPORT_SYMBOL(change_bit);
88 EXPORT_SYMBOL(test_and_set_bit);
89 EXPORT_SYMBOL(test_and_clear_bit);
90 EXPORT_SYMBOL(test_and_change_bit);
91 #endif /* __INLINE_BITOPS */
92
93 EXPORT_SYMBOL(strcpy);
94 EXPORT_SYMBOL(strncpy);
95 EXPORT_SYMBOL(strcat);
96 EXPORT_SYMBOL(strncat);
97 EXPORT_SYMBOL(strchr);
98 EXPORT_SYMBOL(strrchr);
99 EXPORT_SYMBOL(strpbrk);
100 EXPORT_SYMBOL(strstr);
101 EXPORT_SYMBOL(strlen);
102 EXPORT_SYMBOL(strnlen);
103 EXPORT_SYMBOL(strcmp);
104 EXPORT_SYMBOL(strncmp);
105 EXPORT_SYMBOL(strcasecmp);
106 EXPORT_SYMBOL(__div64_32);
107
108 EXPORT_SYMBOL(csum_partial);
109 EXPORT_SYMBOL(csum_partial_copy_generic);
110 EXPORT_SYMBOL(ip_fast_csum);
111 EXPORT_SYMBOL(csum_tcpudp_magic);
112
113 EXPORT_SYMBOL(__copy_tofrom_user);
114 EXPORT_SYMBOL(__clear_user);
115 EXPORT_SYMBOL(__strncpy_from_user);
116 EXPORT_SYMBOL(__strnlen_user);
117
118 /*
119 EXPORT_SYMBOL(inb);
120 EXPORT_SYMBOL(inw);
121 EXPORT_SYMBOL(inl);
122 EXPORT_SYMBOL(outb);
123 EXPORT_SYMBOL(outw);
124 EXPORT_SYMBOL(outl);
125 EXPORT_SYMBOL(outsl);*/
126
127 EXPORT_SYMBOL(__ide_mm_insl);
128 EXPORT_SYMBOL(__ide_mm_outsw);
129 EXPORT_SYMBOL(__ide_mm_insw);
130 EXPORT_SYMBOL(__ide_mm_outsl);
131
132 EXPORT_SYMBOL(_insb);
133 EXPORT_SYMBOL(_outsb);
134 EXPORT_SYMBOL(_insw);
135 EXPORT_SYMBOL(_outsw);
136 EXPORT_SYMBOL(_insl);
137 EXPORT_SYMBOL(_outsl);
138 EXPORT_SYMBOL(_insw_ns);
139 EXPORT_SYMBOL(_outsw_ns);
140 EXPORT_SYMBOL(_insl_ns);
141 EXPORT_SYMBOL(_outsl_ns);
142 EXPORT_SYMBOL(iopa);
143 EXPORT_SYMBOL(mm_ptov);
144 EXPORT_SYMBOL(ioremap);
145 #ifdef CONFIG_44x
146 EXPORT_SYMBOL(ioremap64);
147 #endif
148 EXPORT_SYMBOL(__ioremap);
149 EXPORT_SYMBOL(iounmap);
150 EXPORT_SYMBOL(ioremap_bot);     /* aka VMALLOC_END */
151
152 #if defined(CONFIG_BLK_DEV_IDE) || defined(CONFIG_BLK_DEV_IDE_MODULE)
153 EXPORT_SYMBOL(ppc_ide_md);
154 #endif
155
156 #ifdef CONFIG_PCI
157 EXPORT_SYMBOL(isa_io_base);
158 EXPORT_SYMBOL(isa_mem_base);
159 EXPORT_SYMBOL(pci_dram_offset);
160 EXPORT_SYMBOL(pci_alloc_consistent);
161 EXPORT_SYMBOL(pci_free_consistent);
162 EXPORT_SYMBOL(pci_bus_io_base);
163 EXPORT_SYMBOL(pci_bus_io_base_phys);
164 EXPORT_SYMBOL(pci_bus_mem_base_phys);
165 EXPORT_SYMBOL(pci_bus_to_hose);
166 EXPORT_SYMBOL(pci_resource_to_bus);
167 EXPORT_SYMBOL(pci_phys_to_bus);
168 EXPORT_SYMBOL(pci_bus_to_phys);
169 #endif /* CONFIG_PCI */
170
171 #ifdef CONFIG_NOT_COHERENT_CACHE
172 extern void flush_dcache_all(void);
173 EXPORT_SYMBOL(flush_dcache_all);
174 #endif
175
176 EXPORT_SYMBOL(start_thread);
177 EXPORT_SYMBOL(kernel_thread);
178
179 EXPORT_SYMBOL(flush_instruction_cache);
180 EXPORT_SYMBOL(giveup_fpu);
181 EXPORT_SYMBOL(__flush_icache_range);
182 EXPORT_SYMBOL(flush_dcache_range);
183 EXPORT_SYMBOL(flush_icache_user_range);
184 EXPORT_SYMBOL(flush_dcache_page);
185 EXPORT_SYMBOL(flush_tlb_kernel_range);
186 EXPORT_SYMBOL(flush_tlb_page);
187 EXPORT_SYMBOL(_tlbie);
188 #ifdef CONFIG_ALTIVEC
189 #ifndef CONFIG_SMP
190 EXPORT_SYMBOL(last_task_used_altivec);
191 #endif
192 EXPORT_SYMBOL(giveup_altivec);
193 #endif /* CONFIG_ALTIVEC */
194 #ifdef CONFIG_SPE
195 #ifndef CONFIG_SMP
196 EXPORT_SYMBOL(last_task_used_spe);
197 #endif
198 EXPORT_SYMBOL(giveup_spe);
199 #endif /* CONFIG_SPE */
200 #ifdef CONFIG_SMP
201 EXPORT_SYMBOL(smp_call_function);
202 EXPORT_SYMBOL(smp_hw_index);
203 #endif
204
205 EXPORT_SYMBOL(ppc_md);
206
207 #ifdef CONFIG_ADB
208 EXPORT_SYMBOL(adb_request);
209 EXPORT_SYMBOL(adb_register);
210 EXPORT_SYMBOL(adb_unregister);
211 EXPORT_SYMBOL(adb_poll);
212 EXPORT_SYMBOL(adb_try_handler_change);
213 #endif /* CONFIG_ADB */
214 #ifdef CONFIG_ADB_CUDA
215 EXPORT_SYMBOL(cuda_request);
216 EXPORT_SYMBOL(cuda_poll);
217 #endif /* CONFIG_ADB_CUDA */
218 #ifdef CONFIG_PPC_OF
219 EXPORT_SYMBOL(find_devices);
220 EXPORT_SYMBOL(find_type_devices);
221 EXPORT_SYMBOL(find_compatible_devices);
222 EXPORT_SYMBOL(find_path_device);
223 EXPORT_SYMBOL(device_is_compatible);
224 EXPORT_SYMBOL(machine_is_compatible);
225 EXPORT_SYMBOL(find_all_nodes);
226 EXPORT_SYMBOL(get_property);
227 EXPORT_SYMBOL(request_OF_resource);
228 EXPORT_SYMBOL(release_OF_resource);
229 EXPORT_SYMBOL(of_find_node_by_name);
230 EXPORT_SYMBOL(of_find_node_by_type);
231 EXPORT_SYMBOL(of_find_compatible_node);
232 EXPORT_SYMBOL(of_find_node_by_path);
233 EXPORT_SYMBOL(of_find_all_nodes);
234 EXPORT_SYMBOL(of_get_parent);
235 EXPORT_SYMBOL(of_get_next_child);
236 EXPORT_SYMBOL(of_node_get);
237 EXPORT_SYMBOL(of_node_put);
238 #endif /* CONFIG_PPC_OF */
239 #if defined(CONFIG_BOOTX_TEXT)
240 EXPORT_SYMBOL(btext_update_display);
241 #endif
242 #ifdef CONFIG_VT
243 EXPORT_SYMBOL(kd_mksound);
244 #endif
245 EXPORT_SYMBOL(to_tm);
246
247 EXPORT_SYMBOL(pm_power_off);
248
249 EXPORT_SYMBOL(__ashrdi3);
250 EXPORT_SYMBOL(__ashldi3);
251 EXPORT_SYMBOL(__lshrdi3);
252 EXPORT_SYMBOL(memcpy);
253 EXPORT_SYMBOL(cacheable_memcpy);
254 EXPORT_SYMBOL(memset);
255 EXPORT_SYMBOL(memmove);
256 EXPORT_SYMBOL(memscan);
257 EXPORT_SYMBOL(memcmp);
258 EXPORT_SYMBOL(memchr);
259
260 #if defined(CONFIG_FB_VGA16_MODULE)
261 EXPORT_SYMBOL(screen_info);
262 #endif
263
264 EXPORT_SYMBOL(__delay);
265 EXPORT_SYMBOL(timer_interrupt);
266 EXPORT_SYMBOL(irq_desc);
267 EXPORT_SYMBOL(tb_ticks_per_jiffy);
268 EXPORT_SYMBOL(console_drivers);
269 #ifdef CONFIG_XMON
270 EXPORT_SYMBOL(xmon);
271 EXPORT_SYMBOL(xmon_printf);
272 #endif
273 EXPORT_SYMBOL(__up);
274 EXPORT_SYMBOL(__down);
275 EXPORT_SYMBOL(__down_interruptible);
276
277 #if defined(CONFIG_KGDB) || defined(CONFIG_XMON)
278 extern void (*debugger)(struct pt_regs *regs);
279 extern int (*debugger_bpt)(struct pt_regs *regs);
280 extern int (*debugger_sstep)(struct pt_regs *regs);
281 extern int (*debugger_iabr_match)(struct pt_regs *regs);
282 extern int (*debugger_dabr_match)(struct pt_regs *regs);
283 extern void (*debugger_fault_handler)(struct pt_regs *regs);
284
285 EXPORT_SYMBOL(debugger);
286 EXPORT_SYMBOL(debugger_bpt);
287 EXPORT_SYMBOL(debugger_sstep);
288 EXPORT_SYMBOL(debugger_iabr_match);
289 EXPORT_SYMBOL(debugger_dabr_match);
290 EXPORT_SYMBOL(debugger_fault_handler);
291 #endif
292
293 #ifdef  CONFIG_8xx
294 EXPORT_SYMBOL(cpm_install_handler);
295 EXPORT_SYMBOL(cpm_free_handler);
296 #endif /* CONFIG_8xx */
297 #if defined(CONFIG_8xx) || defined(CONFIG_40x) || defined(CONFIG_85xx) ||\
298         defined(CONFIG_83xx)
299 EXPORT_SYMBOL(__res);
300 #endif
301
302 EXPORT_SYMBOL(next_mmu_context);
303 EXPORT_SYMBOL(set_context);
304 EXPORT_SYMBOL(disarm_decr);
305 #ifdef CONFIG_PPC_STD_MMU
306 extern long mol_trampoline;
307 EXPORT_SYMBOL(mol_trampoline); /* For MOL */
308 EXPORT_SYMBOL(flush_hash_pages); /* For MOL */
309 #ifdef CONFIG_SMP
310 extern int mmu_hash_lock;
311 EXPORT_SYMBOL(mmu_hash_lock); /* For MOL */
312 #endif /* CONFIG_SMP */
313 extern long *intercept_table;
314 EXPORT_SYMBOL(intercept_table);
315 #endif /* CONFIG_PPC_STD_MMU */
316 #if defined(CONFIG_40x) || defined(CONFIG_BOOKE)
317 EXPORT_SYMBOL(__mtdcr);
318 EXPORT_SYMBOL(__mfdcr);
319 #endif