Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 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 */ |
| 17 | EXPORT_SYMBOL(strlen); |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 18 | EXPORT_SYMBOL(strncmp); |
| 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); |
| 26 | EXPORT_SYMBOL(__memscan_zero); |
| 27 | EXPORT_SYMBOL(__memscan_generic); |
| 28 | EXPORT_SYMBOL(memcmp); |
| 29 | EXPORT_SYMBOL(memcpy); |
| 30 | EXPORT_SYMBOL(memset); |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 31 | EXPORT_SYMBOL(memmove); |
| 32 | EXPORT_SYMBOL(__bzero); |
| 33 | |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 34 | /* Networking helper routines. */ |
| 35 | EXPORT_SYMBOL(csum_partial); |
| 36 | |
| 37 | #ifdef CONFIG_MCOUNT |
| 38 | EXPORT_SYMBOL(_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 | |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 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); |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 58 | |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 59 | /* Networking helper routines. */ |
| 60 | EXPORT_SYMBOL(__csum_partial_copy_sparc_generic); |
| 61 | |
| 62 | /* Special internal versions of library functions. */ |
| 63 | EXPORT_SYMBOL(__copy_1page); |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 64 | EXPORT_SYMBOL(__memmove); |
| 65 | EXPORT_SYMBOL(bzero_1page); |
| 66 | |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 67 | /* Moving data to/from/in userspace. */ |
| 68 | EXPORT_SYMBOL(__copy_user); |
| 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 | |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 78 | EXPORT_SYMBOL(__ashrdi3); |
| 79 | EXPORT_SYMBOL(__ashldi3); |
| 80 | EXPORT_SYMBOL(__lshrdi3); |
| 81 | EXPORT_SYMBOL(__muldi3); |
| 82 | EXPORT_SYMBOL(__divdi3); |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 83 | #endif |
| 84 | |
| 85 | /* |
| 86 | * sparc64 |
| 87 | */ |
| 88 | #ifdef CONFIG_SPARC64 |
| 89 | /* Networking helper routines. */ |
| 90 | EXPORT_SYMBOL(csum_partial_copy_nocheck); |
| 91 | EXPORT_SYMBOL(__csum_partial_copy_from_user); |
| 92 | EXPORT_SYMBOL(__csum_partial_copy_to_user); |
| 93 | EXPORT_SYMBOL(ip_fast_csum); |
| 94 | |
| 95 | /* Moving data to/from/in userspace. */ |
| 96 | EXPORT_SYMBOL(___copy_to_user); |
| 97 | EXPORT_SYMBOL(___copy_from_user); |
| 98 | EXPORT_SYMBOL(___copy_in_user); |
| 99 | EXPORT_SYMBOL(__clear_user); |
| 100 | |
| 101 | /* RW semaphores */ |
| 102 | EXPORT_SYMBOL(__down_read); |
| 103 | EXPORT_SYMBOL(__down_read_trylock); |
| 104 | EXPORT_SYMBOL(__down_write); |
| 105 | EXPORT_SYMBOL(__down_write_trylock); |
| 106 | EXPORT_SYMBOL(__up_read); |
| 107 | EXPORT_SYMBOL(__up_write); |
| 108 | EXPORT_SYMBOL(__downgrade_write); |
| 109 | |
| 110 | /* Atomic counter implementation. */ |
| 111 | EXPORT_SYMBOL(atomic_add); |
| 112 | EXPORT_SYMBOL(atomic_add_ret); |
| 113 | EXPORT_SYMBOL(atomic_sub); |
| 114 | EXPORT_SYMBOL(atomic_sub_ret); |
| 115 | EXPORT_SYMBOL(atomic64_add); |
| 116 | EXPORT_SYMBOL(atomic64_add_ret); |
| 117 | EXPORT_SYMBOL(atomic64_sub); |
| 118 | EXPORT_SYMBOL(atomic64_sub_ret); |
David S. Miller | 193d2aa | 2012-11-09 19:37:59 -0800 | [diff] [blame] | 119 | EXPORT_SYMBOL(atomic64_dec_if_positive); |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 120 | |
| 121 | /* Atomic bit operations. */ |
| 122 | EXPORT_SYMBOL(test_and_set_bit); |
| 123 | EXPORT_SYMBOL(test_and_clear_bit); |
| 124 | EXPORT_SYMBOL(test_and_change_bit); |
| 125 | EXPORT_SYMBOL(set_bit); |
| 126 | EXPORT_SYMBOL(clear_bit); |
| 127 | EXPORT_SYMBOL(change_bit); |
| 128 | |
| 129 | /* Special internal versions of library functions. */ |
| 130 | EXPORT_SYMBOL(_clear_page); |
| 131 | EXPORT_SYMBOL(clear_user_page); |
| 132 | EXPORT_SYMBOL(copy_user_page); |
| 133 | |
| 134 | /* RAID code needs this */ |
| 135 | void VISenter(void); |
| 136 | EXPORT_SYMBOL(VISenter); |
| 137 | |
David S. Miller | 4ff28d4 | 2012-08-19 15:41:53 -0700 | [diff] [blame] | 138 | /* CRYPTO code needs this */ |
| 139 | void VISenterhalf(void); |
| 140 | EXPORT_SYMBOL(VISenterhalf); |
| 141 | |
Sam Ravnborg | 45536ff | 2009-01-08 16:57:35 -0800 | [diff] [blame] | 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 *); |
| 149 | EXPORT_SYMBOL(xor_vis_2); |
| 150 | EXPORT_SYMBOL(xor_vis_3); |
| 151 | EXPORT_SYMBOL(xor_vis_4); |
| 152 | EXPORT_SYMBOL(xor_vis_5); |
| 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 | |
| 162 | EXPORT_SYMBOL(xor_niagara_2); |
| 163 | EXPORT_SYMBOL(xor_niagara_3); |
| 164 | EXPORT_SYMBOL(xor_niagara_4); |
| 165 | EXPORT_SYMBOL(xor_niagara_5); |
| 166 | #endif |