blob: f7b450f97e6884bf5d28de653e7d291f809ab1d1 [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 */
Paul Gortmakerecea4ab2011-07-22 10:58:34 -040010#include <linux/export.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>
Abhishek Sagar395a59d2008-06-21 23:47:27 +053021#include <asm/ftrace.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
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);
Linus Torvalds1da177e2005-04-16 15:20:36 -070035extern void __udivsi3(void);
36extern void __umodsi3(void);
37extern void __do_div64(void);
Kim Phillips017f1612013-11-06 05:15:24 +010038extern void __bswapsi2(void);
39extern void __bswapdi2(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070040
Nicolas Pitreba95e4e2006-01-14 16:18:29 +000041extern 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
Linus Torvalds1da177e2005-04-16 15:20:36 -070051extern void fpundefinstr(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070052
Linus Torvalds1da177e2005-04-16 15:20:36 -070053 /* platform dependent support */
Will Deacond0a533b2012-07-06 15:47:17 +010054EXPORT_SYMBOL(arm_delay_ops);
Linus Torvalds1da177e2005-04-16 15:20:36 -070055
56 /* networking */
57EXPORT_SYMBOL(csum_partial);
Frederik Deweerdt487194a2007-05-11 19:10:52 +020058EXPORT_SYMBOL(csum_partial_copy_from_user);
Linus Torvalds1da177e2005-04-16 15:20:36 -070059EXPORT_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 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070083EXPORT_SYMBOL(strchr);
Linus Torvalds1da177e2005-04-16 15:20:36 -070084EXPORT_SYMBOL(strrchr);
Linus Torvalds1da177e2005-04-16 15:20:36 -070085EXPORT_SYMBOL(memset);
86EXPORT_SYMBOL(memcpy);
87EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -070088EXPORT_SYMBOL(memchr);
89EXPORT_SYMBOL(__memzero);
90
Russell King9641c7c2006-06-21 20:38:17 +010091#ifdef CONFIG_MMU
Nicolas Pitre674a0a62008-12-09 03:13:39 +010092EXPORT_SYMBOL(copy_page);
93
Russell King02fcb972006-06-21 14:44:52 +010094EXPORT_SYMBOL(__copy_from_user);
95EXPORT_SYMBOL(__copy_to_user);
96EXPORT_SYMBOL(__clear_user);
Linus Torvalds1da177e2005-04-16 15:20:36 -070097
98EXPORT_SYMBOL(__get_user_1);
99EXPORT_SYMBOL(__get_user_2);
100EXPORT_SYMBOL(__get_user_4);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700101
102EXPORT_SYMBOL(__put_user_1);
103EXPORT_SYMBOL(__put_user_2);
104EXPORT_SYMBOL(__put_user_4);
105EXPORT_SYMBOL(__put_user_8);
Russell King9641c7c2006-06-21 20:38:17 +0100106#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700107
108 /* gcc lib functions */
109EXPORT_SYMBOL(__ashldi3);
110EXPORT_SYMBOL(__ashrdi3);
111EXPORT_SYMBOL(__divsi3);
112EXPORT_SYMBOL(__lshrdi3);
113EXPORT_SYMBOL(__modsi3);
114EXPORT_SYMBOL(__muldi3);
115EXPORT_SYMBOL(__ucmpdi2);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700116EXPORT_SYMBOL(__udivsi3);
117EXPORT_SYMBOL(__umodsi3);
118EXPORT_SYMBOL(__do_div64);
Kim Phillips017f1612013-11-06 05:15:24 +0100119EXPORT_SYMBOL(__bswapsi2);
120EXPORT_SYMBOL(__bswapdi2);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121
Nicolas Pitreba95e4e2006-01-14 16:18:29 +0000122#ifdef CONFIG_AEABI
123EXPORT_SYMBOL(__aeabi_idiv);
124EXPORT_SYMBOL(__aeabi_idivmod);
125EXPORT_SYMBOL(__aeabi_lasr);
126EXPORT_SYMBOL(__aeabi_llsl);
127EXPORT_SYMBOL(__aeabi_llsr);
128EXPORT_SYMBOL(__aeabi_lmul);
129EXPORT_SYMBOL(__aeabi_uidiv);
130EXPORT_SYMBOL(__aeabi_uidivmod);
131EXPORT_SYMBOL(__aeabi_ulcmp);
132#endif
133
Linus Torvalds1da177e2005-04-16 15:20:36 -0700134 /* bitops */
Russell King6323f0c2011-01-16 18:02:17 +0000135EXPORT_SYMBOL(_set_bit);
136EXPORT_SYMBOL(_test_and_set_bit);
137EXPORT_SYMBOL(_clear_bit);
138EXPORT_SYMBOL(_test_and_clear_bit);
139EXPORT_SYMBOL(_change_bit);
140EXPORT_SYMBOL(_test_and_change_bit);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141EXPORT_SYMBOL(_find_first_zero_bit_le);
142EXPORT_SYMBOL(_find_next_zero_bit_le);
143EXPORT_SYMBOL(_find_first_bit_le);
144EXPORT_SYMBOL(_find_next_bit_le);
145
146#ifdef __ARMEB__
Linus Torvalds1da177e2005-04-16 15:20:36 -0700147EXPORT_SYMBOL(_find_first_zero_bit_be);
148EXPORT_SYMBOL(_find_next_zero_bit_be);
149EXPORT_SYMBOL(_find_first_bit_be);
150EXPORT_SYMBOL(_find_next_bit_be);
151#endif
Russell Kingdb2c4392008-05-11 22:36:03 +0100152
Steven Rostedt606576c2008-10-06 19:06:12 -0400153#ifdef CONFIG_FUNCTION_TRACER
Rabin Vincent09bfafa2010-08-10 19:32:37 +0100154#ifdef CONFIG_OLD_MCOUNT
Abhishek Sagar395a59d2008-06-21 23:47:27 +0530155EXPORT_SYMBOL(mcount);
Rabin Vincent09bfafa2010-08-10 19:32:37 +0100156#endif
Uwe Kleine-König181f8172009-08-13 20:38:16 +0200157EXPORT_SYMBOL(__gnu_mcount_nc);
Abhishek Sagar395a59d2008-06-21 23:47:27 +0530158#endif
Russell Kingdc21af92011-01-04 19:09:43 +0000159
160#ifdef CONFIG_ARM_PATCH_PHYS_VIRT
Russell Kinge26a9e02014-03-25 19:45:31 +0000161EXPORT_SYMBOL(__pv_phys_pfn_offset);
Sricharan Rf52bb722013-07-29 20:26:22 +0530162EXPORT_SYMBOL(__pv_offset);
Russell Kingdc21af92011-01-04 19:09:43 +0000163#endif