1 |
1275 |
phoenix |
/* $Id: sparc64_ksyms.c,v 1.1.1.1 2004-04-15 01:34:03 phoenix Exp $
|
2 |
|
|
* arch/sparc64/kernel/sparc64_ksyms.c: Sparc64 specific ksyms support.
|
3 |
|
|
*
|
4 |
|
|
* Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
|
5 |
|
|
* Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
|
6 |
|
|
* Copyright (C) 1999 Jakub Jelinek (jj@ultra.linux.cz)
|
7 |
|
|
*/
|
8 |
|
|
|
9 |
|
|
/* Tell string.h we don't want memcpy etc. as cpp defines */
|
10 |
|
|
#define EXPORT_SYMTAB_STROPS
|
11 |
|
|
#define PROMLIB_INTERNAL
|
12 |
|
|
|
13 |
|
|
#include <linux/config.h>
|
14 |
|
|
#include <linux/module.h>
|
15 |
|
|
#include <linux/types.h>
|
16 |
|
|
#include <linux/string.h>
|
17 |
|
|
#include <linux/sched.h>
|
18 |
|
|
#include <linux/in6.h>
|
19 |
|
|
#include <linux/pci.h>
|
20 |
|
|
#include <linux/interrupt.h>
|
21 |
|
|
#include <linux/fs_struct.h>
|
22 |
|
|
#include <linux/mm.h>
|
23 |
|
|
|
24 |
|
|
#include <asm/oplib.h>
|
25 |
|
|
#include <asm/delay.h>
|
26 |
|
|
#include <asm/system.h>
|
27 |
|
|
#include <asm/auxio.h>
|
28 |
|
|
#include <asm/pgtable.h>
|
29 |
|
|
#include <asm/io.h>
|
30 |
|
|
#include <asm/irq.h>
|
31 |
|
|
#include <asm/softirq.h>
|
32 |
|
|
#include <asm/hardirq.h>
|
33 |
|
|
#include <asm/idprom.h>
|
34 |
|
|
#include <asm/svr4.h>
|
35 |
|
|
#include <asm/elf.h>
|
36 |
|
|
#include <asm/head.h>
|
37 |
|
|
#include <asm/smp.h>
|
38 |
|
|
#include <asm/mostek.h>
|
39 |
|
|
#include <asm/ptrace.h>
|
40 |
|
|
#include <asm/user.h>
|
41 |
|
|
#include <asm/uaccess.h>
|
42 |
|
|
#include <asm/checksum.h>
|
43 |
|
|
#include <asm/fpumacro.h>
|
44 |
|
|
#include <asm/pgalloc.h>
|
45 |
|
|
#ifdef CONFIG_SBUS
|
46 |
|
|
#include <asm/sbus.h>
|
47 |
|
|
#include <asm/dma.h>
|
48 |
|
|
#endif
|
49 |
|
|
#ifdef CONFIG_PCI
|
50 |
|
|
#include <asm/ebus.h>
|
51 |
|
|
#include <asm/isa.h>
|
52 |
|
|
#endif
|
53 |
|
|
#include <asm/a.out.h>
|
54 |
|
|
#include <asm/timer.h>
|
55 |
|
|
|
56 |
|
|
struct poll {
|
57 |
|
|
int fd;
|
58 |
|
|
short events;
|
59 |
|
|
short revents;
|
60 |
|
|
};
|
61 |
|
|
|
62 |
|
|
extern unsigned prom_cpu_nodes[64];
|
63 |
|
|
extern void die_if_kernel(char *str, struct pt_regs *regs);
|
64 |
|
|
void _sigpause_common (unsigned int set, struct pt_regs *);
|
65 |
|
|
extern void *__bzero(void *, size_t);
|
66 |
|
|
extern void *__bzero_noasi(void *, size_t);
|
67 |
|
|
extern void *__memscan_zero(void *, size_t);
|
68 |
|
|
extern void *__memscan_generic(void *, int, size_t);
|
69 |
|
|
extern int __memcmp(const void *, const void *, __kernel_size_t);
|
70 |
|
|
extern int __strncmp(const char *, const char *, __kernel_size_t);
|
71 |
|
|
extern __kernel_size_t __strlen(const char *);
|
72 |
|
|
extern __kernel_size_t strlen(const char *);
|
73 |
|
|
extern char saved_command_line[];
|
74 |
|
|
extern void linux_sparc_syscall(void);
|
75 |
|
|
extern void rtrap(void);
|
76 |
|
|
extern void show_regs(struct pt_regs *);
|
77 |
|
|
extern void solaris_syscall(void);
|
78 |
|
|
extern void syscall_trace(void);
|
79 |
|
|
extern u32 sunos_sys_table[], sys_call_table32[];
|
80 |
|
|
extern void tl0_solaris(void);
|
81 |
|
|
extern void sys_sigsuspend(void);
|
82 |
|
|
extern int sys_getppid(void);
|
83 |
|
|
extern int svr4_getcontext(svr4_ucontext_t *uc, struct pt_regs *regs);
|
84 |
|
|
extern int svr4_setcontext(svr4_ucontext_t *uc, struct pt_regs *regs);
|
85 |
|
|
extern int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
|
86 |
|
|
extern int sys32_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
|
87 |
|
|
extern int (*handle_mathemu)(struct pt_regs *, struct fpustate *);
|
88 |
|
|
extern long sparc32_open(const char * filename, int flags, int mode);
|
89 |
|
|
extern int register_ioctl32_conversion(unsigned int cmd, int (*handler)(unsigned int, unsigned int, unsigned long, struct file *));
|
90 |
|
|
extern int unregister_ioctl32_conversion(unsigned int cmd);
|
91 |
|
|
extern int io_remap_page_range(unsigned long from, unsigned long offset, unsigned long size, pgprot_t prot, int space);
|
92 |
|
|
|
93 |
|
|
extern int __ashrdi3(int, int);
|
94 |
|
|
|
95 |
|
|
extern void dump_thread(struct pt_regs *, struct user *);
|
96 |
|
|
extern int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs);
|
97 |
|
|
|
98 |
|
|
#ifdef CONFIG_SMP
|
99 |
|
|
extern spinlock_t kernel_flag;
|
100 |
|
|
extern int smp_num_cpus;
|
101 |
|
|
#ifdef CONFIG_DEBUG_SPINLOCK
|
102 |
|
|
extern void _do_spin_lock (spinlock_t *lock, char *str);
|
103 |
|
|
extern void _do_spin_unlock (spinlock_t *lock);
|
104 |
|
|
extern int _spin_trylock (spinlock_t *lock);
|
105 |
|
|
extern void _do_read_lock(rwlock_t *rw, char *str);
|
106 |
|
|
extern void _do_read_unlock(rwlock_t *rw, char *str);
|
107 |
|
|
extern void _do_write_lock(rwlock_t *rw, char *str);
|
108 |
|
|
extern void _do_write_unlock(rwlock_t *rw);
|
109 |
|
|
#endif
|
110 |
|
|
#endif
|
111 |
|
|
|
112 |
|
|
extern unsigned long phys_base;
|
113 |
|
|
|
114 |
|
|
/* used by various drivers */
|
115 |
|
|
#ifdef CONFIG_SMP
|
116 |
|
|
#ifndef CONFIG_DEBUG_SPINLOCK
|
117 |
|
|
/* Out of line rw-locking implementation. */
|
118 |
|
|
EXPORT_SYMBOL(__read_lock);
|
119 |
|
|
EXPORT_SYMBOL(__read_unlock);
|
120 |
|
|
EXPORT_SYMBOL(__write_lock);
|
121 |
|
|
EXPORT_SYMBOL(__write_unlock);
|
122 |
|
|
#endif
|
123 |
|
|
|
124 |
|
|
/* Kernel wide locking */
|
125 |
|
|
EXPORT_SYMBOL(kernel_flag);
|
126 |
|
|
|
127 |
|
|
/* Hard IRQ locking */
|
128 |
|
|
EXPORT_SYMBOL(global_irq_holder);
|
129 |
|
|
#ifdef CONFIG_SMP
|
130 |
|
|
EXPORT_SYMBOL(synchronize_irq);
|
131 |
|
|
#endif
|
132 |
|
|
EXPORT_SYMBOL(__global_cli);
|
133 |
|
|
EXPORT_SYMBOL(__global_sti);
|
134 |
|
|
EXPORT_SYMBOL(__global_save_flags);
|
135 |
|
|
EXPORT_SYMBOL(__global_restore_flags);
|
136 |
|
|
|
137 |
|
|
#if defined(CONFIG_MCOUNT)
|
138 |
|
|
extern void mcount(void);
|
139 |
|
|
EXPORT_SYMBOL_NOVERS(mcount);
|
140 |
|
|
#endif
|
141 |
|
|
|
142 |
|
|
/* Per-CPU information table */
|
143 |
|
|
EXPORT_SYMBOL(cpu_data);
|
144 |
|
|
|
145 |
|
|
/* Misc SMP information */
|
146 |
|
|
#ifdef CONFIG_SMP
|
147 |
|
|
EXPORT_SYMBOL(smp_num_cpus);
|
148 |
|
|
#endif
|
149 |
|
|
EXPORT_SYMBOL(__cpu_number_map);
|
150 |
|
|
EXPORT_SYMBOL(__cpu_logical_map);
|
151 |
|
|
|
152 |
|
|
/* Spinlock debugging library, optional. */
|
153 |
|
|
#ifdef CONFIG_DEBUG_SPINLOCK
|
154 |
|
|
EXPORT_SYMBOL(_do_spin_lock);
|
155 |
|
|
EXPORT_SYMBOL(_do_spin_unlock);
|
156 |
|
|
EXPORT_SYMBOL(_spin_trylock);
|
157 |
|
|
EXPORT_SYMBOL(_do_read_lock);
|
158 |
|
|
EXPORT_SYMBOL(_do_read_unlock);
|
159 |
|
|
EXPORT_SYMBOL(_do_write_lock);
|
160 |
|
|
EXPORT_SYMBOL(_do_write_unlock);
|
161 |
|
|
#endif
|
162 |
|
|
|
163 |
|
|
#ifdef CONFIG_SMP
|
164 |
|
|
EXPORT_SYMBOL(smp_call_function);
|
165 |
|
|
#endif
|
166 |
|
|
|
167 |
|
|
#endif
|
168 |
|
|
|
169 |
|
|
/* semaphores */
|
170 |
|
|
EXPORT_SYMBOL(__down);
|
171 |
|
|
EXPORT_SYMBOL(__down_interruptible);
|
172 |
|
|
EXPORT_SYMBOL(__up);
|
173 |
|
|
|
174 |
|
|
/* Atomic counter implementation. */
|
175 |
|
|
EXPORT_SYMBOL(__atomic_add);
|
176 |
|
|
EXPORT_SYMBOL(__atomic_sub);
|
177 |
|
|
#ifdef CONFIG_SMP
|
178 |
|
|
EXPORT_SYMBOL(atomic_dec_and_lock);
|
179 |
|
|
#endif
|
180 |
|
|
|
181 |
|
|
/* Atomic bit operations. */
|
182 |
|
|
EXPORT_SYMBOL(___test_and_set_bit);
|
183 |
|
|
EXPORT_SYMBOL(___test_and_clear_bit);
|
184 |
|
|
EXPORT_SYMBOL(___test_and_change_bit);
|
185 |
|
|
EXPORT_SYMBOL(___test_and_set_le_bit);
|
186 |
|
|
EXPORT_SYMBOL(___test_and_clear_le_bit);
|
187 |
|
|
|
188 |
|
|
EXPORT_SYMBOL(ivector_table);
|
189 |
|
|
EXPORT_SYMBOL(enable_irq);
|
190 |
|
|
EXPORT_SYMBOL(disable_irq);
|
191 |
|
|
|
192 |
|
|
EXPORT_SYMBOL(__flushw_user);
|
193 |
|
|
|
194 |
|
|
EXPORT_SYMBOL(tlb_type);
|
195 |
|
|
EXPORT_SYMBOL(get_fb_unmapped_area);
|
196 |
|
|
EXPORT_SYMBOL(flush_icache_range);
|
197 |
|
|
EXPORT_SYMBOL(flush_dcache_page);
|
198 |
|
|
EXPORT_SYMBOL(__flush_dcache_range);
|
199 |
|
|
|
200 |
|
|
EXPORT_SYMBOL(mostek_lock);
|
201 |
|
|
EXPORT_SYMBOL(mstk48t02_regs);
|
202 |
|
|
EXPORT_SYMBOL(request_fast_irq);
|
203 |
|
|
#if CONFIG_SUN_AUXIO
|
204 |
|
|
EXPORT_SYMBOL(auxio_set_led);
|
205 |
|
|
EXPORT_SYMBOL(auxio_set_lte);
|
206 |
|
|
#endif
|
207 |
|
|
#if CONFIG_SBUS
|
208 |
|
|
EXPORT_SYMBOL(sbus_root);
|
209 |
|
|
EXPORT_SYMBOL(dma_chain);
|
210 |
|
|
EXPORT_SYMBOL(sbus_set_sbus64);
|
211 |
|
|
EXPORT_SYMBOL(sbus_alloc_consistent);
|
212 |
|
|
EXPORT_SYMBOL(sbus_free_consistent);
|
213 |
|
|
EXPORT_SYMBOL(sbus_map_single);
|
214 |
|
|
EXPORT_SYMBOL(sbus_unmap_single);
|
215 |
|
|
EXPORT_SYMBOL(sbus_map_sg);
|
216 |
|
|
EXPORT_SYMBOL(sbus_unmap_sg);
|
217 |
|
|
EXPORT_SYMBOL(sbus_dma_sync_single);
|
218 |
|
|
EXPORT_SYMBOL(sbus_dma_sync_sg);
|
219 |
|
|
#endif
|
220 |
|
|
#ifdef CONFIG_PCI
|
221 |
|
|
EXPORT_SYMBOL(ebus_chain);
|
222 |
|
|
EXPORT_SYMBOL(isa_chain);
|
223 |
|
|
EXPORT_SYMBOL(pci_memspace_mask);
|
224 |
|
|
EXPORT_SYMBOL(outsb);
|
225 |
|
|
EXPORT_SYMBOL(outsw);
|
226 |
|
|
EXPORT_SYMBOL(outsl);
|
227 |
|
|
EXPORT_SYMBOL(insb);
|
228 |
|
|
EXPORT_SYMBOL(insw);
|
229 |
|
|
EXPORT_SYMBOL(insl);
|
230 |
|
|
EXPORT_SYMBOL(pci_alloc_consistent);
|
231 |
|
|
EXPORT_SYMBOL(pci_free_consistent);
|
232 |
|
|
EXPORT_SYMBOL(pci_map_single);
|
233 |
|
|
EXPORT_SYMBOL(pci_unmap_single);
|
234 |
|
|
EXPORT_SYMBOL(pci_map_sg);
|
235 |
|
|
EXPORT_SYMBOL(pci_unmap_sg);
|
236 |
|
|
EXPORT_SYMBOL(pci_dma_sync_single);
|
237 |
|
|
EXPORT_SYMBOL(pci_dma_sync_sg);
|
238 |
|
|
EXPORT_SYMBOL(pci_dma_supported);
|
239 |
|
|
#endif
|
240 |
|
|
|
241 |
|
|
/* IOCTL32 emulation hooks. */
|
242 |
|
|
EXPORT_SYMBOL(register_ioctl32_conversion);
|
243 |
|
|
EXPORT_SYMBOL(unregister_ioctl32_conversion);
|
244 |
|
|
|
245 |
|
|
/* I/O device mmaping on Sparc64. */
|
246 |
|
|
EXPORT_SYMBOL(io_remap_page_range);
|
247 |
|
|
|
248 |
|
|
/* Solaris/SunOS binary compatibility */
|
249 |
|
|
EXPORT_SYMBOL(_sigpause_common);
|
250 |
|
|
|
251 |
|
|
/* Should really be in linux/kernel/ksyms.c */
|
252 |
|
|
EXPORT_SYMBOL(dump_thread);
|
253 |
|
|
EXPORT_SYMBOL(dump_fpu);
|
254 |
|
|
EXPORT_SYMBOL(pte_alloc_one);
|
255 |
|
|
#ifndef CONFIG_SMP
|
256 |
|
|
EXPORT_SYMBOL(pgt_quicklists);
|
257 |
|
|
#endif
|
258 |
|
|
EXPORT_SYMBOL(put_fs_struct);
|
259 |
|
|
|
260 |
|
|
/* math-emu wants this */
|
261 |
|
|
EXPORT_SYMBOL(die_if_kernel);
|
262 |
|
|
|
263 |
|
|
/* Kernel thread creation. */
|
264 |
|
|
EXPORT_SYMBOL(kernel_thread);
|
265 |
|
|
|
266 |
|
|
/* prom symbols */
|
267 |
|
|
EXPORT_SYMBOL(idprom);
|
268 |
|
|
EXPORT_SYMBOL(prom_root_node);
|
269 |
|
|
EXPORT_SYMBOL(prom_getchild);
|
270 |
|
|
EXPORT_SYMBOL(prom_getsibling);
|
271 |
|
|
EXPORT_SYMBOL(prom_searchsiblings);
|
272 |
|
|
EXPORT_SYMBOL(prom_firstprop);
|
273 |
|
|
EXPORT_SYMBOL(prom_nextprop);
|
274 |
|
|
EXPORT_SYMBOL(prom_getproplen);
|
275 |
|
|
EXPORT_SYMBOL(prom_getproperty);
|
276 |
|
|
EXPORT_SYMBOL(prom_node_has_property);
|
277 |
|
|
EXPORT_SYMBOL(prom_setprop);
|
278 |
|
|
EXPORT_SYMBOL(saved_command_line);
|
279 |
|
|
EXPORT_SYMBOL(prom_getname);
|
280 |
|
|
EXPORT_SYMBOL(prom_finddevice);
|
281 |
|
|
EXPORT_SYMBOL(prom_feval);
|
282 |
|
|
EXPORT_SYMBOL(prom_getbool);
|
283 |
|
|
EXPORT_SYMBOL(prom_getstring);
|
284 |
|
|
EXPORT_SYMBOL(prom_getint);
|
285 |
|
|
EXPORT_SYMBOL(prom_getintdefault);
|
286 |
|
|
EXPORT_SYMBOL(__prom_getchild);
|
287 |
|
|
EXPORT_SYMBOL(__prom_getsibling);
|
288 |
|
|
|
289 |
|
|
/* sparc library symbols */
|
290 |
|
|
EXPORT_SYMBOL(__strlen);
|
291 |
|
|
EXPORT_SYMBOL(strlen);
|
292 |
|
|
EXPORT_SYMBOL(strnlen);
|
293 |
|
|
EXPORT_SYMBOL(__strlen_user);
|
294 |
|
|
EXPORT_SYMBOL(__strnlen_user);
|
295 |
|
|
EXPORT_SYMBOL(strcpy);
|
296 |
|
|
EXPORT_SYMBOL(strncpy);
|
297 |
|
|
EXPORT_SYMBOL(strcat);
|
298 |
|
|
EXPORT_SYMBOL(strncat);
|
299 |
|
|
EXPORT_SYMBOL(strcmp);
|
300 |
|
|
EXPORT_SYMBOL(strchr);
|
301 |
|
|
EXPORT_SYMBOL(strrchr);
|
302 |
|
|
EXPORT_SYMBOL(strpbrk);
|
303 |
|
|
EXPORT_SYMBOL(strtok);
|
304 |
|
|
EXPORT_SYMBOL(strstr);
|
305 |
|
|
|
306 |
|
|
#ifdef CONFIG_SOLARIS_EMUL_MODULE
|
307 |
|
|
EXPORT_SYMBOL(linux_sparc_syscall);
|
308 |
|
|
EXPORT_SYMBOL(rtrap);
|
309 |
|
|
EXPORT_SYMBOL(show_regs);
|
310 |
|
|
EXPORT_SYMBOL(solaris_syscall);
|
311 |
|
|
EXPORT_SYMBOL(syscall_trace);
|
312 |
|
|
EXPORT_SYMBOL(sunos_sys_table);
|
313 |
|
|
EXPORT_SYMBOL(sys_call_table32);
|
314 |
|
|
EXPORT_SYMBOL(tl0_solaris);
|
315 |
|
|
EXPORT_SYMBOL(sys_sigsuspend);
|
316 |
|
|
EXPORT_SYMBOL(sys_getppid);
|
317 |
|
|
EXPORT_SYMBOL(svr4_getcontext);
|
318 |
|
|
EXPORT_SYMBOL(svr4_setcontext);
|
319 |
|
|
EXPORT_SYMBOL(prom_cpu_nodes);
|
320 |
|
|
EXPORT_SYMBOL(sys_ioctl);
|
321 |
|
|
EXPORT_SYMBOL(sys32_ioctl);
|
322 |
|
|
EXPORT_SYMBOL(sparc32_open);
|
323 |
|
|
#endif
|
324 |
|
|
|
325 |
|
|
/* Special internal versions of library functions. */
|
326 |
|
|
EXPORT_SYMBOL(__memcpy);
|
327 |
|
|
EXPORT_SYMBOL(__memset);
|
328 |
|
|
EXPORT_SYMBOL(_clear_page);
|
329 |
|
|
EXPORT_SYMBOL(clear_user_page);
|
330 |
|
|
EXPORT_SYMBOL(copy_user_page);
|
331 |
|
|
EXPORT_SYMBOL(__bzero);
|
332 |
|
|
EXPORT_SYMBOL(__memscan_zero);
|
333 |
|
|
EXPORT_SYMBOL(__memscan_generic);
|
334 |
|
|
EXPORT_SYMBOL(__memcmp);
|
335 |
|
|
EXPORT_SYMBOL(__strncmp);
|
336 |
|
|
EXPORT_SYMBOL(__memmove);
|
337 |
|
|
|
338 |
|
|
EXPORT_SYMBOL(csum_partial_copy_sparc64);
|
339 |
|
|
|
340 |
|
|
/* Moving data to/from userspace. */
|
341 |
|
|
EXPORT_SYMBOL(__copy_to_user);
|
342 |
|
|
EXPORT_SYMBOL(__copy_from_user);
|
343 |
|
|
EXPORT_SYMBOL(__strncpy_from_user);
|
344 |
|
|
EXPORT_SYMBOL(__bzero_noasi);
|
345 |
|
|
|
346 |
|
|
/* Various address conversion macros use this. */
|
347 |
|
|
EXPORT_SYMBOL(phys_base);
|
348 |
|
|
EXPORT_SYMBOL(sparc64_valid_addr_bitmap);
|
349 |
|
|
|
350 |
|
|
/* No version information on this, heavily used in inline asm,
|
351 |
|
|
* and will always be 'void __ret_efault(void)'.
|
352 |
|
|
*/
|
353 |
|
|
EXPORT_SYMBOL_NOVERS(__ret_efault);
|
354 |
|
|
|
355 |
|
|
/* No version information on these, as gcc produces such symbols. */
|
356 |
|
|
EXPORT_SYMBOL_NOVERS(memcmp);
|
357 |
|
|
EXPORT_SYMBOL_NOVERS(memcpy);
|
358 |
|
|
EXPORT_SYMBOL_NOVERS(memset);
|
359 |
|
|
EXPORT_SYMBOL_NOVERS(memmove);
|
360 |
|
|
|
361 |
|
|
void VISenter(void);
|
362 |
|
|
/* RAID code needs this */
|
363 |
|
|
EXPORT_SYMBOL_NOVERS(VISenter);
|
364 |
|
|
|
365 |
|
|
extern void batten_down_hatches(void);
|
366 |
|
|
/* for input/keybdev */
|
367 |
|
|
EXPORT_SYMBOL(batten_down_hatches);
|
368 |
|
|
|
369 |
|
|
#ifdef CONFIG_DEBUG_BUGVERBOSE
|
370 |
|
|
EXPORT_SYMBOL(do_BUG);
|
371 |
|
|
#endif
|
372 |
|
|
|
373 |
|
|
EXPORT_SYMBOL(tick_ops);
|