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/export.h>
11#include <linux/sched.h>
12#include <linux/string.h>
13#include <linux/cryptohash.h>
14#include <linux/delay.h>
15#include <linux/in6.h>
16#include <linux/syscalls.h>
17#include <linux/uaccess.h>
18#include <linux/io.h>
19
20#include <asm/checksum.h>
21#include <asm/ftrace.h>
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 */
28extern void __ashldi3(void);
29extern void __ashrdi3(void);
30extern void __divsi3(void);
31extern void __lshrdi3(void);
32extern void __modsi3(void);
33extern void __muldi3(void);
34extern void __ucmpdi2(void);
35extern void __udivsi3(void);
36extern void __umodsi3(void);
37extern void __do_div64(void);
38extern void __bswapsi2(void);
39extern void __bswapdi2(void);
40
41extern void __aeabi_idiv(void);
42extern void __aeabi_idivmod(void);
43extern void __aeabi_lasr(void);
44extern void __aeabi_llsl(void);
45extern void __aeabi_llsr(void);
46extern void __aeabi_lmul(void);
47extern void __aeabi_uidiv(void);
48extern void __aeabi_uidivmod(void);
49extern void __aeabi_ulcmp(void);
50
51extern void fpundefinstr(void);
52
53	/* platform dependent support */
54EXPORT_SYMBOL(arm_delay_ops);
55
56	/* networking */
57EXPORT_SYMBOL(csum_partial);
58EXPORT_SYMBOL(csum_partial_copy_from_user);
59EXPORT_SYMBOL(csum_partial_copy_nocheck);
60EXPORT_SYMBOL(__csum_ipv6_magic);
61
62	/* io */
63#ifndef __raw_readsb
64EXPORT_SYMBOL(__raw_readsb);
65#endif
66#ifndef __raw_readsw
67EXPORT_SYMBOL(__raw_readsw);
68#endif
69#ifndef __raw_readsl
70EXPORT_SYMBOL(__raw_readsl);
71#endif
72#ifndef __raw_writesb
73EXPORT_SYMBOL(__raw_writesb);
74#endif
75#ifndef __raw_writesw
76EXPORT_SYMBOL(__raw_writesw);
77#endif
78#ifndef __raw_writesl
79EXPORT_SYMBOL(__raw_writesl);
80#endif
81
82	/* string / mem functions */
83EXPORT_SYMBOL(strchr);
84EXPORT_SYMBOL(strrchr);
85EXPORT_SYMBOL(memset);
86EXPORT_SYMBOL(memcpy);
87EXPORT_SYMBOL(memmove);
88EXPORT_SYMBOL(memchr);
89EXPORT_SYMBOL(__memzero);
90
91#ifdef CONFIG_MMU
92EXPORT_SYMBOL(copy_page);
93
94EXPORT_SYMBOL(__copy_from_user);
95EXPORT_SYMBOL(__copy_to_user);
96EXPORT_SYMBOL(__clear_user);
97
98EXPORT_SYMBOL(__get_user_1);
99EXPORT_SYMBOL(__get_user_2);
100EXPORT_SYMBOL(__get_user_4);
101EXPORT_SYMBOL(__get_user_8);
102
103#ifdef __ARMEB__
104EXPORT_SYMBOL(__get_user_64t_1);
105EXPORT_SYMBOL(__get_user_64t_2);
106EXPORT_SYMBOL(__get_user_64t_4);
107EXPORT_SYMBOL(__get_user_32t_8);
108#endif
109
110EXPORT_SYMBOL(__put_user_1);
111EXPORT_SYMBOL(__put_user_2);
112EXPORT_SYMBOL(__put_user_4);
113EXPORT_SYMBOL(__put_user_8);
114#endif
115
116	/* gcc lib functions */
117EXPORT_SYMBOL(__ashldi3);
118EXPORT_SYMBOL(__ashrdi3);
119EXPORT_SYMBOL(__divsi3);
120EXPORT_SYMBOL(__lshrdi3);
121EXPORT_SYMBOL(__modsi3);
122EXPORT_SYMBOL(__muldi3);
123EXPORT_SYMBOL(__ucmpdi2);
124EXPORT_SYMBOL(__udivsi3);
125EXPORT_SYMBOL(__umodsi3);
126EXPORT_SYMBOL(__do_div64);
127EXPORT_SYMBOL(__bswapsi2);
128EXPORT_SYMBOL(__bswapdi2);
129
130#ifdef CONFIG_AEABI
131EXPORT_SYMBOL(__aeabi_idiv);
132EXPORT_SYMBOL(__aeabi_idivmod);
133EXPORT_SYMBOL(__aeabi_lasr);
134EXPORT_SYMBOL(__aeabi_llsl);
135EXPORT_SYMBOL(__aeabi_llsr);
136EXPORT_SYMBOL(__aeabi_lmul);
137EXPORT_SYMBOL(__aeabi_uidiv);
138EXPORT_SYMBOL(__aeabi_uidivmod);
139EXPORT_SYMBOL(__aeabi_ulcmp);
140#endif
141
142	/* bitops */
143EXPORT_SYMBOL(_set_bit);
144EXPORT_SYMBOL(_test_and_set_bit);
145EXPORT_SYMBOL(_clear_bit);
146EXPORT_SYMBOL(_test_and_clear_bit);
147EXPORT_SYMBOL(_change_bit);
148EXPORT_SYMBOL(_test_and_change_bit);
149EXPORT_SYMBOL(_find_first_zero_bit_le);
150EXPORT_SYMBOL(_find_next_zero_bit_le);
151EXPORT_SYMBOL(_find_first_bit_le);
152EXPORT_SYMBOL(_find_next_bit_le);
153
154#ifdef __ARMEB__
155EXPORT_SYMBOL(_find_first_zero_bit_be);
156EXPORT_SYMBOL(_find_next_zero_bit_be);
157EXPORT_SYMBOL(_find_first_bit_be);
158EXPORT_SYMBOL(_find_next_bit_be);
159#endif
160
161#ifdef CONFIG_FUNCTION_TRACER
162#ifdef CONFIG_OLD_MCOUNT
163EXPORT_SYMBOL(mcount);
164#endif
165EXPORT_SYMBOL(__gnu_mcount_nc);
166#endif
167
168#ifdef CONFIG_ARM_PATCH_PHYS_VIRT
169EXPORT_SYMBOL(__pv_phys_pfn_offset);
170EXPORT_SYMBOL(__pv_offset);
171#endif
172