1 /* 2 * linux/arch/arm/kernel/armksyms.c 3 * 4 * Copyright (C) 2000 Russell King 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License version 2 as 8 * published by the Free Software Foundation. 9 */ 10 #include <linux/module.h> 11 #include <linux/string.h> 12 #include <linux/cryptohash.h> 13 #include <linux/delay.h> 14 #include <linux/in6.h> 15 #include <linux/syscalls.h> 16 17 #include <asm/checksum.h> 18 #include <asm/io.h> 19 #include <asm/system.h> 20 #include <asm/uaccess.h> 21 22 /* 23 * libgcc functions - functions that are used internally by the 24 * compiler... (prototypes are not correct though, but that 25 * doesn't really matter since they're not versioned). 26 */ 27 extern void __ashldi3(void); 28 extern void __ashrdi3(void); 29 extern void __divsi3(void); 30 extern void __lshrdi3(void); 31 extern void __modsi3(void); 32 extern void __muldi3(void); 33 extern void __ucmpdi2(void); 34 extern void __udivsi3(void); 35 extern void __umodsi3(void); 36 extern void __do_div64(void); 37 38 extern void __aeabi_idiv(void); 39 extern void __aeabi_idivmod(void); 40 extern void __aeabi_lasr(void); 41 extern void __aeabi_llsl(void); 42 extern void __aeabi_llsr(void); 43 extern void __aeabi_lmul(void); 44 extern void __aeabi_uidiv(void); 45 extern void __aeabi_uidivmod(void); 46 extern void __aeabi_ulcmp(void); 47 48 extern void fpundefinstr(void); 49 extern void fp_enter(void); 50 51 /* 52 * This has a special calling convention; it doesn't 53 * modify any of the usual registers, except for LR. 54 */ 55 #define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "") 56 57 #define EXPORT_SYMBOL_ALIAS(sym,orig) \ 58 EXPORT_CRC_ALIAS(sym) \ 59 static const struct kernel_symbol __ksymtab_##sym \ 60 __attribute_used__ __attribute__((section("__ksymtab"))) = \ 61 { (unsigned long)&orig, #sym }; 62 63 /* 64 * floating point math emulator support. 65 * These symbols will never change their calling convention... 66 */ 67 EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter); 68 EXPORT_SYMBOL_ALIAS(fp_printk,printk); 69 EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig); 70 71 EXPORT_SYMBOL(__backtrace); 72 73 /* platform dependent support */ 74 EXPORT_SYMBOL(__udelay); 75 EXPORT_SYMBOL(__const_udelay); 76 77 /* networking */ 78 EXPORT_SYMBOL(csum_partial); 79 EXPORT_SYMBOL(csum_partial_copy_nocheck); 80 EXPORT_SYMBOL(__csum_ipv6_magic); 81 82 /* io */ 83 #ifndef __raw_readsb 84 EXPORT_SYMBOL(__raw_readsb); 85 #endif 86 #ifndef __raw_readsw 87 EXPORT_SYMBOL(__raw_readsw); 88 #endif 89 #ifndef __raw_readsl 90 EXPORT_SYMBOL(__raw_readsl); 91 #endif 92 #ifndef __raw_writesb 93 EXPORT_SYMBOL(__raw_writesb); 94 #endif 95 #ifndef __raw_writesw 96 EXPORT_SYMBOL(__raw_writesw); 97 #endif 98 #ifndef __raw_writesl 99 EXPORT_SYMBOL(__raw_writesl); 100 #endif 101 102 /* string / mem functions */ 103 EXPORT_SYMBOL(strchr); 104 EXPORT_SYMBOL(strrchr); 105 EXPORT_SYMBOL(memset); 106 EXPORT_SYMBOL(memcpy); 107 EXPORT_SYMBOL(memmove); 108 EXPORT_SYMBOL(memchr); 109 EXPORT_SYMBOL(__memzero); 110 111 /* user mem (segment) */ 112 EXPORT_SYMBOL(__arch_copy_from_user); 113 EXPORT_SYMBOL(__arch_copy_to_user); 114 EXPORT_SYMBOL(__arch_clear_user); 115 EXPORT_SYMBOL(__arch_strnlen_user); 116 EXPORT_SYMBOL(__arch_strncpy_from_user); 117 118 EXPORT_SYMBOL(__get_user_1); 119 EXPORT_SYMBOL(__get_user_2); 120 EXPORT_SYMBOL(__get_user_4); 121 122 EXPORT_SYMBOL(__put_user_1); 123 EXPORT_SYMBOL(__put_user_2); 124 EXPORT_SYMBOL(__put_user_4); 125 EXPORT_SYMBOL(__put_user_8); 126 127 /* crypto hash */ 128 EXPORT_SYMBOL(sha_transform); 129 130 /* gcc lib functions */ 131 EXPORT_SYMBOL(__ashldi3); 132 EXPORT_SYMBOL(__ashrdi3); 133 EXPORT_SYMBOL(__divsi3); 134 EXPORT_SYMBOL(__lshrdi3); 135 EXPORT_SYMBOL(__modsi3); 136 EXPORT_SYMBOL(__muldi3); 137 EXPORT_SYMBOL(__ucmpdi2); 138 EXPORT_SYMBOL(__udivsi3); 139 EXPORT_SYMBOL(__umodsi3); 140 EXPORT_SYMBOL(__do_div64); 141 142 #ifdef CONFIG_AEABI 143 EXPORT_SYMBOL(__aeabi_idiv); 144 EXPORT_SYMBOL(__aeabi_idivmod); 145 EXPORT_SYMBOL(__aeabi_lasr); 146 EXPORT_SYMBOL(__aeabi_llsl); 147 EXPORT_SYMBOL(__aeabi_llsr); 148 EXPORT_SYMBOL(__aeabi_lmul); 149 EXPORT_SYMBOL(__aeabi_uidiv); 150 EXPORT_SYMBOL(__aeabi_uidivmod); 151 EXPORT_SYMBOL(__aeabi_ulcmp); 152 #endif 153 154 /* bitops */ 155 EXPORT_SYMBOL(_set_bit_le); 156 EXPORT_SYMBOL(_test_and_set_bit_le); 157 EXPORT_SYMBOL(_clear_bit_le); 158 EXPORT_SYMBOL(_test_and_clear_bit_le); 159 EXPORT_SYMBOL(_change_bit_le); 160 EXPORT_SYMBOL(_test_and_change_bit_le); 161 EXPORT_SYMBOL(_find_first_zero_bit_le); 162 EXPORT_SYMBOL(_find_next_zero_bit_le); 163 EXPORT_SYMBOL(_find_first_bit_le); 164 EXPORT_SYMBOL(_find_next_bit_le); 165 166 #ifdef __ARMEB__ 167 EXPORT_SYMBOL(_set_bit_be); 168 EXPORT_SYMBOL(_test_and_set_bit_be); 169 EXPORT_SYMBOL(_clear_bit_be); 170 EXPORT_SYMBOL(_test_and_clear_bit_be); 171 EXPORT_SYMBOL(_change_bit_be); 172 EXPORT_SYMBOL(_test_and_change_bit_be); 173 EXPORT_SYMBOL(_find_first_zero_bit_be); 174 EXPORT_SYMBOL(_find_next_zero_bit_be); 175 EXPORT_SYMBOL(_find_first_bit_be); 176 EXPORT_SYMBOL(_find_next_bit_be); 177 #endif 178 179 /* syscalls */ 180 EXPORT_SYMBOL(sys_write); 181 EXPORT_SYMBOL(sys_lseek); 182 EXPORT_SYMBOL(sys_exit); 183 EXPORT_SYMBOL(sys_wait4); 184