blob: 323335b9cd2b5cc9d08f3fc100f088773c87a4aa [file] [log] [blame]
Sam Ravnborg45536ff2009-01-08 16:57:35 -08001/*
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 */
17EXPORT_SYMBOL(strlen);
Sam Ravnborg45536ff2009-01-08 16:57:35 -080018EXPORT_SYMBOL(strncmp);
19
20/* mem* functions */
21extern void *__memscan_zero(void *, size_t);
22extern void *__memscan_generic(void *, int, size_t);
23extern void *__bzero(void *, size_t);
24
25EXPORT_SYMBOL(memscan);
26EXPORT_SYMBOL(__memscan_zero);
27EXPORT_SYMBOL(__memscan_generic);
28EXPORT_SYMBOL(memcmp);
29EXPORT_SYMBOL(memcpy);
30EXPORT_SYMBOL(memset);
Sam Ravnborg45536ff2009-01-08 16:57:35 -080031EXPORT_SYMBOL(memmove);
32EXPORT_SYMBOL(__bzero);
33
Sam Ravnborg45536ff2009-01-08 16:57:35 -080034/* Networking helper routines. */
35EXPORT_SYMBOL(csum_partial);
36
37#ifdef CONFIG_MCOUNT
38EXPORT_SYMBOL(_mcount);
39#endif
40
41/*
42 * sparc
43 */
44#ifdef CONFIG_SPARC32
45extern int __ashrdi3(int, int);
46extern int __ashldi3(int, int);
47extern int __lshrdi3(int, int);
48extern int __muldi3(int, int);
49extern int __divdi3(int, int);
50
51extern void (*__copy_1page)(void *, const void *);
52extern void (*bzero_1page)(void *);
53
Sam Ravnborg45536ff2009-01-08 16:57:35 -080054extern void ___rw_read_enter(void);
55extern void ___rw_read_try(void);
56extern void ___rw_read_exit(void);
57extern void ___rw_write_enter(void);
Sam Ravnborg45536ff2009-01-08 16:57:35 -080058
Sam Ravnborg45536ff2009-01-08 16:57:35 -080059/* Networking helper routines. */
60EXPORT_SYMBOL(__csum_partial_copy_sparc_generic);
61
62/* Special internal versions of library functions. */
63EXPORT_SYMBOL(__copy_1page);
Sam Ravnborg45536ff2009-01-08 16:57:35 -080064EXPORT_SYMBOL(__memmove);
65EXPORT_SYMBOL(bzero_1page);
66
Sam Ravnborg45536ff2009-01-08 16:57:35 -080067/* Moving data to/from/in userspace. */
68EXPORT_SYMBOL(__copy_user);
69
70/* Used by asm/spinlock.h */
71#ifdef CONFIG_SMP
72EXPORT_SYMBOL(___rw_read_enter);
73EXPORT_SYMBOL(___rw_read_try);
74EXPORT_SYMBOL(___rw_read_exit);
75EXPORT_SYMBOL(___rw_write_enter);
76#endif
77
Sam Ravnborg45536ff2009-01-08 16:57:35 -080078EXPORT_SYMBOL(__ashrdi3);
79EXPORT_SYMBOL(__ashldi3);
80EXPORT_SYMBOL(__lshrdi3);
81EXPORT_SYMBOL(__muldi3);
82EXPORT_SYMBOL(__divdi3);
Sam Ravnborg45536ff2009-01-08 16:57:35 -080083#endif
84
85/*
86 * sparc64
87 */
88#ifdef CONFIG_SPARC64
89/* Networking helper routines. */
90EXPORT_SYMBOL(csum_partial_copy_nocheck);
91EXPORT_SYMBOL(__csum_partial_copy_from_user);
92EXPORT_SYMBOL(__csum_partial_copy_to_user);
93EXPORT_SYMBOL(ip_fast_csum);
94
95/* Moving data to/from/in userspace. */
96EXPORT_SYMBOL(___copy_to_user);
97EXPORT_SYMBOL(___copy_from_user);
98EXPORT_SYMBOL(___copy_in_user);
99EXPORT_SYMBOL(__clear_user);
100
Sam Ravnborg45536ff2009-01-08 16:57:35 -0800101/* Atomic counter implementation. */
102EXPORT_SYMBOL(atomic_add);
103EXPORT_SYMBOL(atomic_add_ret);
104EXPORT_SYMBOL(atomic_sub);
105EXPORT_SYMBOL(atomic_sub_ret);
106EXPORT_SYMBOL(atomic64_add);
107EXPORT_SYMBOL(atomic64_add_ret);
108EXPORT_SYMBOL(atomic64_sub);
109EXPORT_SYMBOL(atomic64_sub_ret);
David S. Miller193d2aa2012-11-09 19:37:59 -0800110EXPORT_SYMBOL(atomic64_dec_if_positive);
Sam Ravnborg45536ff2009-01-08 16:57:35 -0800111
112/* Atomic bit operations. */
113EXPORT_SYMBOL(test_and_set_bit);
114EXPORT_SYMBOL(test_and_clear_bit);
115EXPORT_SYMBOL(test_and_change_bit);
116EXPORT_SYMBOL(set_bit);
117EXPORT_SYMBOL(clear_bit);
118EXPORT_SYMBOL(change_bit);
119
120/* Special internal versions of library functions. */
121EXPORT_SYMBOL(_clear_page);
122EXPORT_SYMBOL(clear_user_page);
123EXPORT_SYMBOL(copy_user_page);
124
125/* RAID code needs this */
126void VISenter(void);
127EXPORT_SYMBOL(VISenter);
128
David S. Miller4ff28d42012-08-19 15:41:53 -0700129/* CRYPTO code needs this */
130void VISenterhalf(void);
131EXPORT_SYMBOL(VISenterhalf);
132
Sam Ravnborg45536ff2009-01-08 16:57:35 -0800133extern void xor_vis_2(unsigned long, unsigned long *, unsigned long *);
134extern void xor_vis_3(unsigned long, unsigned long *, unsigned long *,
135 unsigned long *);
136extern void xor_vis_4(unsigned long, unsigned long *, unsigned long *,
137 unsigned long *, unsigned long *);
138extern void xor_vis_5(unsigned long, unsigned long *, unsigned long *,
139 unsigned long *, unsigned long *, unsigned long *);
140EXPORT_SYMBOL(xor_vis_2);
141EXPORT_SYMBOL(xor_vis_3);
142EXPORT_SYMBOL(xor_vis_4);
143EXPORT_SYMBOL(xor_vis_5);
144
145extern void xor_niagara_2(unsigned long, unsigned long *, unsigned long *);
146extern void xor_niagara_3(unsigned long, unsigned long *, unsigned long *,
147 unsigned long *);
148extern void xor_niagara_4(unsigned long, unsigned long *, unsigned long *,
149 unsigned long *, unsigned long *);
150extern void xor_niagara_5(unsigned long, unsigned long *, unsigned long *,
151 unsigned long *, unsigned long *, unsigned long *);
152
153EXPORT_SYMBOL(xor_niagara_2);
154EXPORT_SYMBOL(xor_niagara_3);
155EXPORT_SYMBOL(xor_niagara_4);
156EXPORT_SYMBOL(xor_niagara_5);
157#endif