blob: e5e1e5387678f7ff5d9df7811b4f902c2b385f41 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
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>
Russell King87c52572008-11-29 17:35:51 +000011#include <linux/sched.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#include <linux/string.h>
Nicolas Pitred07ad962005-11-08 22:43:05 +000013#include <linux/cryptohash.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070014#include <linux/delay.h>
15#include <linux/in6.h>
16#include <linux/syscalls.h>
Russell King33fa9b12008-09-06 11:35:55 +010017#include <linux/uaccess.h>
Russell Kingfced80c2008-09-06 12:10:45 +010018#include <linux/io.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
20#include <asm/checksum.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070021#include <asm/system.h>
Abhishek Sagar395a59d2008-06-21 23:47:27 +053022#include <asm/ftrace.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070023
24/*
25 * libgcc functions - functions that are used internally by the
26 * compiler... (prototypes are not correct though, but that
27 * doesn't really matter since they're not versioned).
28 */
29extern void __ashldi3(void);
30extern void __ashrdi3(void);
31extern void __divsi3(void);
32extern void __lshrdi3(void);
33extern void __modsi3(void);
34extern void __muldi3(void);
35extern void __ucmpdi2(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070036extern void __udivsi3(void);
37extern void __umodsi3(void);
38extern void __do_div64(void);
39
Nicolas Pitreba95e4e2006-01-14 16:18:29 +000040extern void __aeabi_idiv(void);
41extern void __aeabi_idivmod(void);
42extern void __aeabi_lasr(void);
43extern void __aeabi_llsl(void);
44extern void __aeabi_llsr(void);
45extern void __aeabi_lmul(void);
46extern void __aeabi_uidiv(void);
47extern void __aeabi_uidivmod(void);
48extern void __aeabi_ulcmp(void);
49
Linus Torvalds1da177e2005-04-16 15:20:36 -070050extern void fpundefinstr(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070051
Linus Torvalds1da177e2005-04-16 15:20:36 -070052
53EXPORT_SYMBOL(__backtrace);
54
55 /* platform dependent support */
56EXPORT_SYMBOL(__udelay);
57EXPORT_SYMBOL(__const_udelay);
58
59 /* networking */
60EXPORT_SYMBOL(csum_partial);
Frederik Deweerdt487194a2007-05-11 19:10:52 +020061EXPORT_SYMBOL(csum_partial_copy_from_user);
Linus Torvalds1da177e2005-04-16 15:20:36 -070062EXPORT_SYMBOL(csum_partial_copy_nocheck);
63EXPORT_SYMBOL(__csum_ipv6_magic);
64
65 /* io */
66#ifndef __raw_readsb
67EXPORT_SYMBOL(__raw_readsb);
68#endif
69#ifndef __raw_readsw
70EXPORT_SYMBOL(__raw_readsw);
71#endif
72#ifndef __raw_readsl
73EXPORT_SYMBOL(__raw_readsl);
74#endif
75#ifndef __raw_writesb
76EXPORT_SYMBOL(__raw_writesb);
77#endif
78#ifndef __raw_writesw
79EXPORT_SYMBOL(__raw_writesw);
80#endif
81#ifndef __raw_writesl
82EXPORT_SYMBOL(__raw_writesl);
83#endif
84
85 /* string / mem functions */
Linus Torvalds1da177e2005-04-16 15:20:36 -070086EXPORT_SYMBOL(strchr);
Linus Torvalds1da177e2005-04-16 15:20:36 -070087EXPORT_SYMBOL(strrchr);
Linus Torvalds1da177e2005-04-16 15:20:36 -070088EXPORT_SYMBOL(memset);
89EXPORT_SYMBOL(memcpy);
90EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -070091EXPORT_SYMBOL(memchr);
92EXPORT_SYMBOL(__memzero);
93
94 /* user mem (segment) */
Russell King9641c7c2006-06-21 20:38:17 +010095EXPORT_SYMBOL(__strnlen_user);
96EXPORT_SYMBOL(__strncpy_from_user);
97
98#ifdef CONFIG_MMU
Nicolas Pitre674a0a62008-12-09 03:13:39 +010099EXPORT_SYMBOL(copy_page);
100
Russell King02fcb972006-06-21 14:44:52 +0100101EXPORT_SYMBOL(__copy_from_user);
102EXPORT_SYMBOL(__copy_to_user);
103EXPORT_SYMBOL(__clear_user);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104
105EXPORT_SYMBOL(__get_user_1);
106EXPORT_SYMBOL(__get_user_2);
107EXPORT_SYMBOL(__get_user_4);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700108
109EXPORT_SYMBOL(__put_user_1);
110EXPORT_SYMBOL(__put_user_2);
111EXPORT_SYMBOL(__put_user_4);
112EXPORT_SYMBOL(__put_user_8);
Russell King9641c7c2006-06-21 20:38:17 +0100113#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700114
Nicolas Pitred07ad962005-11-08 22:43:05 +0000115 /* crypto hash */
116EXPORT_SYMBOL(sha_transform);
117
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118 /* gcc lib functions */
119EXPORT_SYMBOL(__ashldi3);
120EXPORT_SYMBOL(__ashrdi3);
121EXPORT_SYMBOL(__divsi3);
122EXPORT_SYMBOL(__lshrdi3);
123EXPORT_SYMBOL(__modsi3);
124EXPORT_SYMBOL(__muldi3);
125EXPORT_SYMBOL(__ucmpdi2);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126EXPORT_SYMBOL(__udivsi3);
127EXPORT_SYMBOL(__umodsi3);
128EXPORT_SYMBOL(__do_div64);
129
Nicolas Pitreba95e4e2006-01-14 16:18:29 +0000130#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
Linus Torvalds1da177e2005-04-16 15:20:36 -0700142 /* bitops */
143EXPORT_SYMBOL(_set_bit_le);
144EXPORT_SYMBOL(_test_and_set_bit_le);
145EXPORT_SYMBOL(_clear_bit_le);
146EXPORT_SYMBOL(_test_and_clear_bit_le);
147EXPORT_SYMBOL(_change_bit_le);
148EXPORT_SYMBOL(_test_and_change_bit_le);
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(_set_bit_be);
156EXPORT_SYMBOL(_test_and_set_bit_be);
157EXPORT_SYMBOL(_clear_bit_be);
158EXPORT_SYMBOL(_test_and_clear_bit_be);
159EXPORT_SYMBOL(_change_bit_be);
160EXPORT_SYMBOL(_test_and_change_bit_be);
161EXPORT_SYMBOL(_find_first_zero_bit_be);
162EXPORT_SYMBOL(_find_next_zero_bit_be);
163EXPORT_SYMBOL(_find_first_bit_be);
164EXPORT_SYMBOL(_find_next_bit_be);
165#endif
Russell Kingdb2c4392008-05-11 22:36:03 +0100166
Steven Rostedt606576c2008-10-06 19:06:12 -0400167#ifdef CONFIG_FUNCTION_TRACER
Rabin Vincent09bfafa2010-08-10 19:32:37 +0100168#ifdef CONFIG_OLD_MCOUNT
Abhishek Sagar395a59d2008-06-21 23:47:27 +0530169EXPORT_SYMBOL(mcount);
Rabin Vincent09bfafa2010-08-10 19:32:37 +0100170#endif
Uwe Kleine-König181f8172009-08-13 20:38:16 +0200171EXPORT_SYMBOL(__gnu_mcount_nc);
Abhishek Sagar395a59d2008-06-21 23:47:27 +0530172#endif