2 * linux/arch/arm/kernel/armksyms.c
4 * Copyright (C) 2000 Russell King
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.
10 #include <linux/module.h>
11 #include <linux/string.h>
12 #include <linux/delay.h>
13 #include <linux/in6.h>
14 #include <linux/syscalls.h>
16 #include <asm/checksum.h>
18 #include <asm/system.h>
19 #include <asm/uaccess.h>
22 * libgcc functions - functions that are used internally by the
23 * compiler... (prototypes are not correct though, but that
24 * doesn't really matter since they're not versioned).
26 extern void __ashldi3(void);
27 extern void __ashrdi3(void);
28 extern void __divsi3(void);
29 extern void __lshrdi3(void);
30 extern void __modsi3(void);
31 extern void __muldi3(void);
32 extern void __ucmpdi2(void);
33 extern void __udivsi3(void);
34 extern void __umodsi3(void);
35 extern void __do_div64(void);
37 extern void fpundefinstr(void);
38 extern void fp_enter(void);
41 * This has a special calling convention; it doesn't
42 * modify any of the usual registers, except for LR.
44 #define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "")
46 #define EXPORT_SYMBOL_ALIAS(sym,orig) \
47 EXPORT_CRC_ALIAS(sym) \
48 const struct kernel_symbol __ksymtab_##sym \
49 __attribute__((section("__ksymtab"))) = \
50 { (unsigned long)&orig, #sym };
53 * floating point math emulator support.
54 * These symbols will never change their calling convention...
56 EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter);
57 EXPORT_SYMBOL_ALIAS(fp_printk,printk);
58 EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig);
60 EXPORT_SYMBOL(__backtrace);
62 /* platform dependent support */
63 EXPORT_SYMBOL(__udelay);
64 EXPORT_SYMBOL(__const_udelay);
67 EXPORT_SYMBOL(csum_partial);
68 EXPORT_SYMBOL(csum_partial_copy_nocheck);
69 EXPORT_SYMBOL(__csum_ipv6_magic);
73 EXPORT_SYMBOL(__raw_readsb);
76 EXPORT_SYMBOL(__raw_readsw);
79 EXPORT_SYMBOL(__raw_readsl);
82 EXPORT_SYMBOL(__raw_writesb);
85 EXPORT_SYMBOL(__raw_writesw);
88 EXPORT_SYMBOL(__raw_writesl);
91 /* string / mem functions */
92 EXPORT_SYMBOL(strcpy);
93 EXPORT_SYMBOL(strncpy);
94 EXPORT_SYMBOL(strcat);
95 EXPORT_SYMBOL(strncat);
96 EXPORT_SYMBOL(strcmp);
97 EXPORT_SYMBOL(strncmp);
98 EXPORT_SYMBOL(strchr);
99 EXPORT_SYMBOL(strlen);
100 EXPORT_SYMBOL(strnlen);
101 EXPORT_SYMBOL(strpbrk);
102 EXPORT_SYMBOL(strrchr);
103 EXPORT_SYMBOL(strstr);
104 EXPORT_SYMBOL(memset);
105 EXPORT_SYMBOL(memcpy);
106 EXPORT_SYMBOL(memmove);
107 EXPORT_SYMBOL(memcmp);
108 EXPORT_SYMBOL(memscan);
109 EXPORT_SYMBOL(memchr);
110 EXPORT_SYMBOL(__memzero);
112 /* user mem (segment) */
113 EXPORT_SYMBOL(__arch_copy_from_user);
114 EXPORT_SYMBOL(__arch_copy_to_user);
115 EXPORT_SYMBOL(__arch_clear_user);
116 EXPORT_SYMBOL(__arch_strnlen_user);
117 EXPORT_SYMBOL(__arch_strncpy_from_user);
119 EXPORT_SYMBOL(__get_user_1);
120 EXPORT_SYMBOL(__get_user_2);
121 EXPORT_SYMBOL(__get_user_4);
122 EXPORT_SYMBOL(__get_user_8);
124 EXPORT_SYMBOL(__put_user_1);
125 EXPORT_SYMBOL(__put_user_2);
126 EXPORT_SYMBOL(__put_user_4);
127 EXPORT_SYMBOL(__put_user_8);
129 /* gcc lib functions */
130 EXPORT_SYMBOL(__ashldi3);
131 EXPORT_SYMBOL(__ashrdi3);
132 EXPORT_SYMBOL(__divsi3);
133 EXPORT_SYMBOL(__lshrdi3);
134 EXPORT_SYMBOL(__modsi3);
135 EXPORT_SYMBOL(__muldi3);
136 EXPORT_SYMBOL(__ucmpdi2);
137 EXPORT_SYMBOL(__udivsi3);
138 EXPORT_SYMBOL(__umodsi3);
139 EXPORT_SYMBOL(__do_div64);
142 EXPORT_SYMBOL(_set_bit_le);
143 EXPORT_SYMBOL(_test_and_set_bit_le);
144 EXPORT_SYMBOL(_clear_bit_le);
145 EXPORT_SYMBOL(_test_and_clear_bit_le);
146 EXPORT_SYMBOL(_change_bit_le);
147 EXPORT_SYMBOL(_test_and_change_bit_le);
148 EXPORT_SYMBOL(_find_first_zero_bit_le);
149 EXPORT_SYMBOL(_find_next_zero_bit_le);
150 EXPORT_SYMBOL(_find_first_bit_le);
151 EXPORT_SYMBOL(_find_next_bit_le);
154 EXPORT_SYMBOL(_set_bit_be);
155 EXPORT_SYMBOL(_test_and_set_bit_be);
156 EXPORT_SYMBOL(_clear_bit_be);
157 EXPORT_SYMBOL(_test_and_clear_bit_be);
158 EXPORT_SYMBOL(_change_bit_be);
159 EXPORT_SYMBOL(_test_and_change_bit_be);
160 EXPORT_SYMBOL(_find_first_zero_bit_be);
161 EXPORT_SYMBOL(_find_next_zero_bit_be);
162 EXPORT_SYMBOL(_find_first_bit_be);
163 EXPORT_SYMBOL(_find_next_bit_be);
167 EXPORT_SYMBOL(sys_write);
168 EXPORT_SYMBOL(sys_read);
169 EXPORT_SYMBOL(sys_lseek);
170 EXPORT_SYMBOL(sys_open);
171 EXPORT_SYMBOL(sys_exit);
172 EXPORT_SYMBOL(sys_wait4);