]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
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> | |
d07ad967 | 12 | #include <linux/cryptohash.h> |
1da177e4 LT |
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> | |
395a59d0 | 21 | #include <asm/ftrace.h> |
1da177e4 LT |
22 | |
23 | /* | |
24 | * libgcc functions - functions that are used internally by the | |
25 | * compiler... (prototypes are not correct though, but that | |
26 | * doesn't really matter since they're not versioned). | |
27 | */ | |
28 | extern void __ashldi3(void); | |
29 | extern void __ashrdi3(void); | |
30 | extern void __divsi3(void); | |
31 | extern void __lshrdi3(void); | |
32 | extern void __modsi3(void); | |
33 | extern void __muldi3(void); | |
34 | extern void __ucmpdi2(void); | |
1da177e4 LT |
35 | extern void __udivsi3(void); |
36 | extern void __umodsi3(void); | |
37 | extern void __do_div64(void); | |
38 | ||
ba95e4e4 NP |
39 | extern void __aeabi_idiv(void); |
40 | extern void __aeabi_idivmod(void); | |
41 | extern void __aeabi_lasr(void); | |
42 | extern void __aeabi_llsl(void); | |
43 | extern void __aeabi_llsr(void); | |
44 | extern void __aeabi_lmul(void); | |
45 | extern void __aeabi_uidiv(void); | |
46 | extern void __aeabi_uidivmod(void); | |
47 | extern void __aeabi_ulcmp(void); | |
48 | ||
1da177e4 LT |
49 | extern void fpundefinstr(void); |
50 | extern void fp_enter(void); | |
51 | ||
52 | /* | |
53 | * This has a special calling convention; it doesn't | |
54 | * modify any of the usual registers, except for LR. | |
55 | */ | |
7bc7fc50 TP |
56 | #define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "") |
57 | ||
1da177e4 | 58 | #define EXPORT_SYMBOL_ALIAS(sym,orig) \ |
7bc7fc50 | 59 | EXPORT_CRC_ALIAS(sym) \ |
a7b1bbbc | 60 | static const struct kernel_symbol __ksymtab_##sym \ |
b91d8a12 | 61 | __used __attribute__((section("__ksymtab"))) = \ |
1da177e4 LT |
62 | { (unsigned long)&orig, #sym }; |
63 | ||
64 | /* | |
65 | * floating point math emulator support. | |
66 | * These symbols will never change their calling convention... | |
67 | */ | |
68 | EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter); | |
69 | EXPORT_SYMBOL_ALIAS(fp_printk,printk); | |
70 | EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig); | |
71 | ||
72 | EXPORT_SYMBOL(__backtrace); | |
73 | ||
74 | /* platform dependent support */ | |
75 | EXPORT_SYMBOL(__udelay); | |
76 | EXPORT_SYMBOL(__const_udelay); | |
77 | ||
78 | /* networking */ | |
79 | EXPORT_SYMBOL(csum_partial); | |
487194a1 | 80 | EXPORT_SYMBOL(csum_partial_copy_from_user); |
1da177e4 LT |
81 | EXPORT_SYMBOL(csum_partial_copy_nocheck); |
82 | EXPORT_SYMBOL(__csum_ipv6_magic); | |
83 | ||
84 | /* io */ | |
85 | #ifndef __raw_readsb | |
86 | EXPORT_SYMBOL(__raw_readsb); | |
87 | #endif | |
88 | #ifndef __raw_readsw | |
89 | EXPORT_SYMBOL(__raw_readsw); | |
90 | #endif | |
91 | #ifndef __raw_readsl | |
92 | EXPORT_SYMBOL(__raw_readsl); | |
93 | #endif | |
94 | #ifndef __raw_writesb | |
95 | EXPORT_SYMBOL(__raw_writesb); | |
96 | #endif | |
97 | #ifndef __raw_writesw | |
98 | EXPORT_SYMBOL(__raw_writesw); | |
99 | #endif | |
100 | #ifndef __raw_writesl | |
101 | EXPORT_SYMBOL(__raw_writesl); | |
102 | #endif | |
103 | ||
104 | /* string / mem functions */ | |
1da177e4 | 105 | EXPORT_SYMBOL(strchr); |
1da177e4 | 106 | EXPORT_SYMBOL(strrchr); |
1da177e4 LT |
107 | EXPORT_SYMBOL(memset); |
108 | EXPORT_SYMBOL(memcpy); | |
109 | EXPORT_SYMBOL(memmove); | |
1da177e4 LT |
110 | EXPORT_SYMBOL(memchr); |
111 | EXPORT_SYMBOL(__memzero); | |
112 | ||
113 | /* user mem (segment) */ | |
9641c7cc RK |
114 | EXPORT_SYMBOL(__strnlen_user); |
115 | EXPORT_SYMBOL(__strncpy_from_user); | |
116 | ||
117 | #ifdef CONFIG_MMU | |
02fcb974 RK |
118 | EXPORT_SYMBOL(__copy_from_user); |
119 | EXPORT_SYMBOL(__copy_to_user); | |
120 | EXPORT_SYMBOL(__clear_user); | |
1da177e4 LT |
121 | |
122 | EXPORT_SYMBOL(__get_user_1); | |
123 | EXPORT_SYMBOL(__get_user_2); | |
124 | EXPORT_SYMBOL(__get_user_4); | |
1da177e4 LT |
125 | |
126 | EXPORT_SYMBOL(__put_user_1); | |
127 | EXPORT_SYMBOL(__put_user_2); | |
128 | EXPORT_SYMBOL(__put_user_4); | |
129 | EXPORT_SYMBOL(__put_user_8); | |
9641c7cc | 130 | #endif |
1da177e4 | 131 | |
d07ad967 NP |
132 | /* crypto hash */ |
133 | EXPORT_SYMBOL(sha_transform); | |
134 | ||
1da177e4 LT |
135 | /* gcc lib functions */ |
136 | EXPORT_SYMBOL(__ashldi3); | |
137 | EXPORT_SYMBOL(__ashrdi3); | |
138 | EXPORT_SYMBOL(__divsi3); | |
139 | EXPORT_SYMBOL(__lshrdi3); | |
140 | EXPORT_SYMBOL(__modsi3); | |
141 | EXPORT_SYMBOL(__muldi3); | |
142 | EXPORT_SYMBOL(__ucmpdi2); | |
1da177e4 LT |
143 | EXPORT_SYMBOL(__udivsi3); |
144 | EXPORT_SYMBOL(__umodsi3); | |
145 | EXPORT_SYMBOL(__do_div64); | |
146 | ||
ba95e4e4 NP |
147 | #ifdef CONFIG_AEABI |
148 | EXPORT_SYMBOL(__aeabi_idiv); | |
149 | EXPORT_SYMBOL(__aeabi_idivmod); | |
150 | EXPORT_SYMBOL(__aeabi_lasr); | |
151 | EXPORT_SYMBOL(__aeabi_llsl); | |
152 | EXPORT_SYMBOL(__aeabi_llsr); | |
153 | EXPORT_SYMBOL(__aeabi_lmul); | |
154 | EXPORT_SYMBOL(__aeabi_uidiv); | |
155 | EXPORT_SYMBOL(__aeabi_uidivmod); | |
156 | EXPORT_SYMBOL(__aeabi_ulcmp); | |
157 | #endif | |
158 | ||
1da177e4 LT |
159 | /* bitops */ |
160 | EXPORT_SYMBOL(_set_bit_le); | |
161 | EXPORT_SYMBOL(_test_and_set_bit_le); | |
162 | EXPORT_SYMBOL(_clear_bit_le); | |
163 | EXPORT_SYMBOL(_test_and_clear_bit_le); | |
164 | EXPORT_SYMBOL(_change_bit_le); | |
165 | EXPORT_SYMBOL(_test_and_change_bit_le); | |
166 | EXPORT_SYMBOL(_find_first_zero_bit_le); | |
167 | EXPORT_SYMBOL(_find_next_zero_bit_le); | |
168 | EXPORT_SYMBOL(_find_first_bit_le); | |
169 | EXPORT_SYMBOL(_find_next_bit_le); | |
170 | ||
171 | #ifdef __ARMEB__ | |
172 | EXPORT_SYMBOL(_set_bit_be); | |
173 | EXPORT_SYMBOL(_test_and_set_bit_be); | |
174 | EXPORT_SYMBOL(_clear_bit_be); | |
175 | EXPORT_SYMBOL(_test_and_clear_bit_be); | |
176 | EXPORT_SYMBOL(_change_bit_be); | |
177 | EXPORT_SYMBOL(_test_and_change_bit_be); | |
178 | EXPORT_SYMBOL(_find_first_zero_bit_be); | |
179 | EXPORT_SYMBOL(_find_next_zero_bit_be); | |
180 | EXPORT_SYMBOL(_find_first_bit_be); | |
181 | EXPORT_SYMBOL(_find_next_bit_be); | |
182 | #endif | |
db2c4392 RK |
183 | |
184 | EXPORT_SYMBOL(copy_page); | |
395a59d0 AS |
185 | |
186 | #ifdef CONFIG_FTRACE | |
187 | EXPORT_SYMBOL(mcount); | |
188 | #endif |