~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/sparc64/kernel/sparc64_ksyms.c

Version: ~ [ linux-5.15-rc6 ] ~ [ linux-5.14.14 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.75 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.155 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.213 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.252 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.287 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.289 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* $Id: sparc64_ksyms.c,v 1.121 2002/02/09 19:49:31 davem 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 #include <linux/socket.h>
 24 #include <linux/percpu.h>
 25 #include <net/compat.h>
 26 
 27 #include <asm/oplib.h>
 28 #include <asm/delay.h>
 29 #include <asm/system.h>
 30 #include <asm/auxio.h>
 31 #include <asm/pgtable.h>
 32 #include <asm/io.h>
 33 #include <asm/irq.h>
 34 #include <asm/hardirq.h>
 35 #include <asm/idprom.h>
 36 #include <asm/svr4.h>
 37 #include <asm/elf.h>
 38 #include <asm/head.h>
 39 #include <asm/smp.h>
 40 #include <asm/mostek.h>
 41 #include <asm/ptrace.h>
 42 #include <asm/user.h>
 43 #include <asm/uaccess.h>
 44 #include <asm/checksum.h>
 45 #include <asm/fpumacro.h>
 46 #include <asm/pgalloc.h>
 47 #include <asm/cacheflush.h>
 48 #ifdef CONFIG_SBUS
 49 #include <asm/sbus.h>
 50 #include <asm/dma.h>
 51 #endif
 52 #ifdef CONFIG_PCI
 53 #include <asm/ebus.h>
 54 #include <asm/isa.h>
 55 #endif
 56 #include <asm/a.out.h>
 57 #include <asm/ns87303.h>
 58 #include <asm/timer.h>
 59 #include <asm/cpudata.h>
 60 
 61 struct poll {
 62         int fd;
 63         short events;
 64         short revents;
 65 };
 66 
 67 extern void die_if_kernel(char *str, struct pt_regs *regs);
 68 extern pid_t kernel_thread(int (*fn)(void *), void * arg, unsigned long flags);
 69 void _sigpause_common (unsigned int set, struct pt_regs *);
 70 extern void *__bzero(void *, size_t);
 71 extern void *__memscan_zero(void *, size_t);
 72 extern void *__memscan_generic(void *, int, size_t);
 73 extern int __memcmp(const void *, const void *, __kernel_size_t);
 74 extern int __strncmp(const char *, const char *, __kernel_size_t);
 75 extern __kernel_size_t __strlen(const char *);
 76 extern __kernel_size_t strlen(const char *);
 77 extern char saved_command_line[];
 78 extern void linux_sparc_syscall(void);
 79 extern void rtrap(void);
 80 extern void show_regs(struct pt_regs *);
 81 extern void solaris_syscall(void);
 82 extern void syscall_trace(void);
 83 extern u32 sunos_sys_table[], sys_call_table32[];
 84 extern void tl0_solaris(void);
 85 extern void sys_sigsuspend(void);
 86 extern int sys_getppid(void);
 87 extern int sys_getpid(void);
 88 extern int sys_geteuid(void);
 89 extern int sys_getuid(void);
 90 extern int sys_getegid(void);
 91 extern int sys_getgid(void);
 92 extern int svr4_getcontext(svr4_ucontext_t *uc, struct pt_regs *regs);
 93 extern int svr4_setcontext(svr4_ucontext_t *uc, struct pt_regs *regs);
 94 extern int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg);
 95 extern int compat_sys_ioctl(unsigned int fd, unsigned int cmd, u32 arg);
 96 extern int (*handle_mathemu)(struct pt_regs *, struct fpustate *);
 97 extern long sparc32_open(const char * filename, int flags, int mode);
 98 extern int io_remap_page_range(struct vm_area_struct *vma, unsigned long from, unsigned long offset, unsigned long size, pgprot_t prot, int space);
 99                 
100 extern int __ashrdi3(int, int);
101 
102 extern void dump_thread(struct pt_regs *, struct user *);
103 extern int dump_fpu (struct pt_regs * regs, elf_fpregset_t * fpregs);
104 
105 #if defined(CONFIG_SMP) && defined(CONFIG_DEBUG_SPINLOCK)
106 extern void _do_spin_lock (spinlock_t *lock, char *str);
107 extern void _do_spin_unlock (spinlock_t *lock);
108 extern int _spin_trylock (spinlock_t *lock);
109 extern void _do_read_lock(rwlock_t *rw, char *str);
110 extern void _do_read_unlock(rwlock_t *rw, char *str);
111 extern void _do_write_lock(rwlock_t *rw, char *str);
112 extern void _do_write_unlock(rwlock_t *rw);
113 #endif
114 
115 extern unsigned long phys_base;
116 extern unsigned long pfn_base;
117 
118 extern unsigned int sys_call_table[];
119 
120 extern void xor_vis_2(unsigned long, unsigned long *, unsigned long *);
121 extern void xor_vis_3(unsigned long, unsigned long *, unsigned long *,
122                       unsigned long *);
123 extern void xor_vis_4(unsigned long, unsigned long *, unsigned long *,
124                       unsigned long *, unsigned long *);
125 extern void xor_vis_5(unsigned long, unsigned long *, unsigned long *,
126                       unsigned long *, unsigned long *, unsigned long *);
127 
128 /* Per-CPU information table */
129 EXPORT_PER_CPU_SYMBOL(__cpu_data);
130 
131 /* used by various drivers */
132 #ifdef CONFIG_SMP
133 #ifndef CONFIG_DEBUG_SPINLOCK
134 /* Out of line rw-locking implementation. */
135 EXPORT_SYMBOL(__read_lock);
136 EXPORT_SYMBOL(__read_unlock);
137 EXPORT_SYMBOL(__write_lock);
138 EXPORT_SYMBOL(__write_unlock);
139 EXPORT_SYMBOL(__write_trylock);
140 #endif
141 
142 /* Hard IRQ locking */
143 EXPORT_SYMBOL(synchronize_irq);
144 
145 #if defined(CONFIG_MCOUNT)
146 extern void mcount(void);
147 EXPORT_SYMBOL_NOVERS(mcount);
148 #endif
149 
150 /* CPU online map and active count.  */
151 EXPORT_SYMBOL(cpu_online_map);
152 EXPORT_SYMBOL(phys_cpu_present_map);
153 EXPORT_SYMBOL(sparc64_num_cpus_possible);
154 
155 /* Spinlock debugging library, optional. */
156 #ifdef CONFIG_DEBUG_SPINLOCK
157 EXPORT_SYMBOL(_do_spin_lock);
158 EXPORT_SYMBOL(_do_spin_unlock);
159 EXPORT_SYMBOL(_spin_trylock);
160 EXPORT_SYMBOL(_do_read_lock);
161 EXPORT_SYMBOL(_do_read_unlock);
162 EXPORT_SYMBOL(_do_write_lock);
163 EXPORT_SYMBOL(_do_write_unlock);
164 #endif
165 
166 EXPORT_SYMBOL(smp_call_function);
167 #endif /* CONFIG_SMP */
168 
169 EXPORT_SYMBOL(sparc64_get_clock_tick);
170 
171 /* semaphores */
172 EXPORT_SYMBOL(down);
173 EXPORT_SYMBOL(down_trylock);
174 EXPORT_SYMBOL(down_interruptible);
175 EXPORT_SYMBOL(up);
176 
177 /* Atomic counter implementation. */
178 EXPORT_SYMBOL(__atomic_add);
179 EXPORT_SYMBOL(__atomic_sub);
180 EXPORT_SYMBOL(__atomic64_add);
181 EXPORT_SYMBOL(__atomic64_sub);
182 #ifdef CONFIG_SMP
183 EXPORT_SYMBOL(atomic_dec_and_lock);
184 #endif
185 
186 /* Atomic bit operations. */
187 EXPORT_SYMBOL(___test_and_set_bit);
188 EXPORT_SYMBOL(___test_and_clear_bit);
189 EXPORT_SYMBOL(___test_and_change_bit);
190 EXPORT_SYMBOL(___test_and_set_le_bit);
191 EXPORT_SYMBOL(___test_and_clear_le_bit);
192 
193 EXPORT_SYMBOL(ivector_table);
194 EXPORT_SYMBOL(enable_irq);
195 EXPORT_SYMBOL(disable_irq);
196 
197 EXPORT_SYMBOL(__flushw_user);
198 
199 EXPORT_SYMBOL(tlb_type);
200 EXPORT_SYMBOL(get_fb_unmapped_area);
201 EXPORT_SYMBOL(flush_icache_range);
202 EXPORT_SYMBOL(flush_dcache_page);
203 EXPORT_SYMBOL(__flush_dcache_range);
204 
205 EXPORT_SYMBOL(mostek_lock);
206 EXPORT_SYMBOL(mstk48t02_regs);
207 EXPORT_SYMBOL(request_fast_irq);
208 #ifdef CONFIG_SUN_AUXIO
209 EXPORT_SYMBOL(auxio_set_led);
210 EXPORT_SYMBOL(auxio_set_lte);
211 #endif
212 #ifdef CONFIG_SBUS
213 EXPORT_SYMBOL(sbus_root);
214 EXPORT_SYMBOL(dma_chain);
215 EXPORT_SYMBOL(sbus_set_sbus64);
216 EXPORT_SYMBOL(sbus_alloc_consistent);
217 EXPORT_SYMBOL(sbus_free_consistent);
218 EXPORT_SYMBOL(sbus_map_single);
219 EXPORT_SYMBOL(sbus_unmap_single);
220 EXPORT_SYMBOL(sbus_map_sg);
221 EXPORT_SYMBOL(sbus_unmap_sg);
222 EXPORT_SYMBOL(sbus_dma_sync_single);
223 EXPORT_SYMBOL(sbus_dma_sync_sg);
224 #endif
225 EXPORT_SYMBOL(outsb);
226 EXPORT_SYMBOL(outsw);
227 EXPORT_SYMBOL(outsl);
228 EXPORT_SYMBOL(insb);
229 EXPORT_SYMBOL(insw);
230 EXPORT_SYMBOL(insl);
231 #ifdef CONFIG_PCI
232 EXPORT_SYMBOL(ebus_chain);
233 EXPORT_SYMBOL(isa_chain);
234 EXPORT_SYMBOL(pci_memspace_mask);
235 EXPORT_SYMBOL(pci_alloc_consistent);
236 EXPORT_SYMBOL(pci_free_consistent);
237 EXPORT_SYMBOL(pci_map_single);
238 EXPORT_SYMBOL(pci_unmap_single);
239 EXPORT_SYMBOL(pci_map_sg);
240 EXPORT_SYMBOL(pci_unmap_sg);
241 EXPORT_SYMBOL(pci_dma_sync_single);
242 EXPORT_SYMBOL(pci_dma_sync_sg);
243 EXPORT_SYMBOL(pci_dma_supported);
244 #endif
245 
246 /* I/O device mmaping on Sparc64. */
247 EXPORT_SYMBOL(io_remap_page_range);
248 
249 /* Solaris/SunOS binary compatibility */
250 EXPORT_SYMBOL(_sigpause_common);
251 EXPORT_SYMBOL(verify_compat_iovec);
252 
253 EXPORT_SYMBOL(dump_thread);
254 EXPORT_SYMBOL(dump_fpu);
255 EXPORT_SYMBOL(pte_alloc_one_kernel);
256 #ifndef CONFIG_SMP
257 EXPORT_SYMBOL(pgt_quicklists);
258 #endif
259 EXPORT_SYMBOL(put_fs_struct);
260 
261 /* math-emu wants this */
262 EXPORT_SYMBOL(die_if_kernel);
263 
264 /* Kernel thread creation. */
265 EXPORT_SYMBOL(kernel_thread);
266 
267 /* prom symbols */
268 EXPORT_SYMBOL(idprom);
269 EXPORT_SYMBOL(prom_root_node);
270 EXPORT_SYMBOL(prom_getchild);
271 EXPORT_SYMBOL(prom_getsibling);
272 EXPORT_SYMBOL(prom_searchsiblings);
273 EXPORT_SYMBOL(prom_firstprop);
274 EXPORT_SYMBOL(prom_nextprop);
275 EXPORT_SYMBOL(prom_getproplen);
276 EXPORT_SYMBOL(prom_getproperty);
277 EXPORT_SYMBOL(prom_node_has_property);
278 EXPORT_SYMBOL(prom_setprop);
279 EXPORT_SYMBOL(saved_command_line);
280 EXPORT_SYMBOL(prom_getname);
281 EXPORT_SYMBOL(prom_finddevice);
282 EXPORT_SYMBOL(prom_feval);
283 EXPORT_SYMBOL(prom_getbool);
284 EXPORT_SYMBOL(prom_getstring);
285 EXPORT_SYMBOL(prom_getint);
286 EXPORT_SYMBOL(prom_getintdefault);
287 EXPORT_SYMBOL(__prom_getchild);
288 EXPORT_SYMBOL(__prom_getsibling);
289 
290 /* sparc library symbols */
291 EXPORT_SYMBOL(__strlen);
292 EXPORT_SYMBOL(strlen);
293 EXPORT_SYMBOL(strnlen);
294 EXPORT_SYMBOL(__strlen_user);
295 EXPORT_SYMBOL(__strnlen_user);
296 EXPORT_SYMBOL(strcpy);
297 EXPORT_SYMBOL(strncpy);
298 EXPORT_SYMBOL(strcat);
299 EXPORT_SYMBOL(strncat);
300 EXPORT_SYMBOL(strcmp);
301 EXPORT_SYMBOL(strchr);
302 EXPORT_SYMBOL(strrchr);
303 EXPORT_SYMBOL(strpbrk);
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(sys_getpid);
318 EXPORT_SYMBOL(sys_geteuid);
319 EXPORT_SYMBOL(sys_getuid);
320 EXPORT_SYMBOL(sys_getegid);
321 EXPORT_SYMBOL(sys_getgid);
322 EXPORT_SYMBOL(svr4_getcontext);
323 EXPORT_SYMBOL(svr4_setcontext);
324 EXPORT_SYMBOL(sys_ioctl);
325 EXPORT_SYMBOL(compat_sys_ioctl);
326 EXPORT_SYMBOL(sparc32_open);
327 #endif
328 
329 /* Special internal versions of library functions. */
330 EXPORT_SYMBOL(__memcpy);
331 EXPORT_SYMBOL(__memset);
332 EXPORT_SYMBOL(_clear_page);
333 EXPORT_SYMBOL(clear_user_page);
334 EXPORT_SYMBOL(copy_user_page);
335 EXPORT_SYMBOL(__bzero);
336 EXPORT_SYMBOL(__memscan_zero);
337 EXPORT_SYMBOL(__memscan_generic);
338 EXPORT_SYMBOL(__memcmp);
339 EXPORT_SYMBOL(__strncmp);
340 EXPORT_SYMBOL(__memmove);
341 EXPORT_SYMBOL(memchr);
342 
343 EXPORT_SYMBOL(csum_partial);
344 EXPORT_SYMBOL(csum_partial_copy_sparc64);
345 EXPORT_SYMBOL(ip_fast_csum);
346 
347 /* Moving data to/from userspace. */
348 EXPORT_SYMBOL(__copy_to_user);
349 EXPORT_SYMBOL(__copy_from_user);
350 EXPORT_SYMBOL(__strncpy_from_user);
351 EXPORT_SYMBOL(__bzero_noasi);
352 
353 /* Various address conversion macros use this. */
354 EXPORT_SYMBOL(phys_base);
355 EXPORT_SYMBOL(pfn_base);
356 EXPORT_SYMBOL(sparc64_valid_addr_bitmap);
357 
358 /* No version information on this, heavily used in inline asm,
359  * and will always be 'void __ret_efault(void)'.
360  */
361 EXPORT_SYMBOL_NOVERS(__ret_efault);
362 
363 /* No version information on these, as gcc produces such symbols. */
364 EXPORT_SYMBOL_NOVERS(memcmp);
365 EXPORT_SYMBOL_NOVERS(memcpy);
366 EXPORT_SYMBOL_NOVERS(memset);
367 EXPORT_SYMBOL_NOVERS(memmove);
368 
369 void VISenter(void);
370 /* RAID code needs this */
371 EXPORT_SYMBOL_NOVERS(VISenter);
372 
373 /* for input/keybdev */
374 EXPORT_SYMBOL(sun_do_break);
375 EXPORT_SYMBOL(serial_console);
376 EXPORT_SYMBOL(stop_a_enabled);
377 
378 #ifdef CONFIG_DEBUG_BUGVERBOSE
379 EXPORT_SYMBOL(do_BUG);
380 #endif
381 
382 /* for ns8703 */
383 EXPORT_SYMBOL(ns87303_lock);
384 
385 /* for solaris compat module */
386 EXPORT_SYMBOL_GPL(sys_call_table);
387 
388 EXPORT_SYMBOL(tick_ops);
389 
390 EXPORT_SYMBOL(xor_vis_2);
391 EXPORT_SYMBOL(xor_vis_3);
392 EXPORT_SYMBOL(xor_vis_4);
393 EXPORT_SYMBOL(xor_vis_5);
394 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp