Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ksyms.c
Go to the documentation of this file.
1 /*
2  * Export of symbols defined in assembler
3  */
4 
5 /* Tell string.h we don't want memcpy etc. as cpp defines */
6 #define EXPORT_SYMTAB_STROPS
7 
8 #include <linux/module.h>
9 #include <linux/string.h>
10 #include <linux/types.h>
11 
12 #include <asm/checksum.h>
13 #include <asm/uaccess.h>
14 #include <asm/ftrace.h>
15 
16 /* string functions */
19 
20 /* mem* functions */
21 extern void *__memscan_zero(void *, size_t);
22 extern void *__memscan_generic(void *, int, size_t);
23 extern void *__bzero(void *, size_t);
24 
25 EXPORT_SYMBOL(memscan);
33 
34 /* Networking helper routines. */
36 
37 #ifdef CONFIG_MCOUNT
39 #endif
40 
41 /*
42  * sparc
43  */
44 #ifdef CONFIG_SPARC32
45 extern int __ashrdi3(int, int);
46 extern int __ashldi3(int, int);
47 extern int __lshrdi3(int, int);
48 extern int __muldi3(int, int);
49 extern int __divdi3(int, int);
50 
51 extern void (*__copy_1page)(void *, const void *);
52 extern void (*bzero_1page)(void *);
53 
54 extern void ___rw_read_enter(void);
55 extern void ___rw_read_try(void);
56 extern void ___rw_read_exit(void);
57 extern void ___rw_write_enter(void);
58 
59 /* Networking helper routines. */
61 
62 /* Special internal versions of library functions. */
63 EXPORT_SYMBOL(__copy_1page);
64 EXPORT_SYMBOL(__memmove);
65 EXPORT_SYMBOL(bzero_1page);
66 
67 /* Moving data to/from/in userspace. */
69 
70 /* Used by asm/spinlock.h */
71 #ifdef CONFIG_SMP
72 EXPORT_SYMBOL(___rw_read_enter);
73 EXPORT_SYMBOL(___rw_read_try);
74 EXPORT_SYMBOL(___rw_read_exit);
75 EXPORT_SYMBOL(___rw_write_enter);
76 #endif
77 
83 #endif
84 
85 /*
86  * sparc64
87  */
88 #ifdef CONFIG_SPARC64
89 /* Networking helper routines. */
94 
95 /* Moving data to/from/in userspace. */
100 
101 /* RW semaphores */
109 
110 /* Atomic counter implementation. */
119 EXPORT_SYMBOL(atomic64_dec_if_positive);
120 
121 /* Atomic bit operations. */
128 
129 /* Special internal versions of library functions. */
133 
134 /* RAID code needs this */
135 void VISenter(void);
136 EXPORT_SYMBOL(VISenter);
137 
138 /* CRYPTO code needs this */
139 void VISenterhalf(void);
140 EXPORT_SYMBOL(VISenterhalf);
141 
142 extern void xor_vis_2(unsigned long, unsigned long *, unsigned long *);
143 extern void xor_vis_3(unsigned long, unsigned long *, unsigned long *,
144  unsigned long *);
145 extern void xor_vis_4(unsigned long, unsigned long *, unsigned long *,
146  unsigned long *, unsigned long *);
147 extern void xor_vis_5(unsigned long, unsigned long *, unsigned long *,
148  unsigned long *, unsigned long *, unsigned long *);
153 
154 extern void xor_niagara_2(unsigned long, unsigned long *, unsigned long *);
155 extern void xor_niagara_3(unsigned long, unsigned long *, unsigned long *,
156  unsigned long *);
157 extern void xor_niagara_4(unsigned long, unsigned long *, unsigned long *,
158  unsigned long *, unsigned long *);
159 extern void xor_niagara_5(unsigned long, unsigned long *, unsigned long *,
160  unsigned long *, unsigned long *, unsigned long *);
161 
166 #endif