1 // SPDX-License-Identifier: GPL-2.0-only
3 * linux/arch/arm/kernel/armksyms.c
5 * Copyright (C) 2000 Russell King
7 #include <linux/export.h>
8 #include <linux/sched.h>
9 #include <linux/string.h>
10 #include <linux/delay.h>
11 #include <linux/in6.h>
12 #include <linux/syscalls.h>
13 #include <linux/uaccess.h>
15 #include <linux/arm-smccc.h>
17 #include <asm/checksum.h>
18 #include <asm/ftrace.h>
21 * libgcc functions - functions that are used internally by the
22 * compiler... (prototypes are not correct though, but that
23 * doesn't really matter since they're not versioned).
25 extern void __ashldi3(void);
26 extern void __ashrdi3(void);
27 extern void __divsi3(void);
28 extern void __lshrdi3(void);
29 extern void __modsi3(void);
30 extern void __muldi3(void);
31 extern void __ucmpdi2(void);
32 extern void __udivsi3(void);
33 extern void __umodsi3(void);
34 extern void __do_div64(void);
35 extern void __bswapsi2(void);
36 extern void __bswapdi2(void);
38 extern void __aeabi_idiv(void);
39 extern void __aeabi_idivmod(void);
40 extern void __aeabi_lasr(void);
41 extern void __aeabi_llsl(void);
42 extern void __aeabi_llsr(void);
43 extern void __aeabi_lmul(void);
44 extern void __aeabi_uidiv(void);
45 extern void __aeabi_uidivmod(void);
46 extern void __aeabi_ulcmp(void);
48 extern void fpundefinstr(void);
50 void mmioset(void *, unsigned int, size_t);
51 void mmiocpy(void *, const void *, size_t);
53 /* platform dependent support */
54 EXPORT_SYMBOL(arm_delay_ops
);
57 EXPORT_SYMBOL(csum_partial
);
58 EXPORT_SYMBOL(csum_partial_copy_from_user
);
59 EXPORT_SYMBOL(csum_partial_copy_nocheck
);
60 EXPORT_SYMBOL(__csum_ipv6_magic
);
64 EXPORT_SYMBOL(__raw_readsb
);
67 EXPORT_SYMBOL(__raw_readsw
);
70 EXPORT_SYMBOL(__raw_readsl
);
73 EXPORT_SYMBOL(__raw_writesb
);
76 EXPORT_SYMBOL(__raw_writesw
);
79 EXPORT_SYMBOL(__raw_writesl
);
82 /* string / mem functions */
83 EXPORT_SYMBOL(strchr
);
84 EXPORT_SYMBOL(strrchr
);
85 EXPORT_SYMBOL(memset
);
86 EXPORT_SYMBOL(__memset32
);
87 EXPORT_SYMBOL(__memset64
);
88 EXPORT_SYMBOL(memcpy
);
89 EXPORT_SYMBOL(memmove
);
90 EXPORT_SYMBOL(memchr
);
92 EXPORT_SYMBOL(mmioset
);
93 EXPORT_SYMBOL(mmiocpy
);
96 EXPORT_SYMBOL(copy_page
);
98 EXPORT_SYMBOL(arm_copy_from_user
);
99 EXPORT_SYMBOL(arm_copy_to_user
);
100 EXPORT_SYMBOL(arm_clear_user
);
102 EXPORT_SYMBOL(__get_user_1
);
103 EXPORT_SYMBOL(__get_user_2
);
104 EXPORT_SYMBOL(__get_user_4
);
105 EXPORT_SYMBOL(__get_user_8
);
108 EXPORT_SYMBOL(__get_user_64t_1
);
109 EXPORT_SYMBOL(__get_user_64t_2
);
110 EXPORT_SYMBOL(__get_user_64t_4
);
111 EXPORT_SYMBOL(__get_user_32t_8
);
114 EXPORT_SYMBOL(__put_user_1
);
115 EXPORT_SYMBOL(__put_user_2
);
116 EXPORT_SYMBOL(__put_user_4
);
117 EXPORT_SYMBOL(__put_user_8
);
120 /* gcc lib functions */
121 EXPORT_SYMBOL(__ashldi3
);
122 EXPORT_SYMBOL(__ashrdi3
);
123 EXPORT_SYMBOL(__divsi3
);
124 EXPORT_SYMBOL(__lshrdi3
);
125 EXPORT_SYMBOL(__modsi3
);
126 EXPORT_SYMBOL(__muldi3
);
127 EXPORT_SYMBOL(__ucmpdi2
);
128 EXPORT_SYMBOL(__udivsi3
);
129 EXPORT_SYMBOL(__umodsi3
);
130 EXPORT_SYMBOL(__do_div64
);
131 EXPORT_SYMBOL(__bswapsi2
);
132 EXPORT_SYMBOL(__bswapdi2
);
135 EXPORT_SYMBOL(__aeabi_idiv
);
136 EXPORT_SYMBOL(__aeabi_idivmod
);
137 EXPORT_SYMBOL(__aeabi_lasr
);
138 EXPORT_SYMBOL(__aeabi_llsl
);
139 EXPORT_SYMBOL(__aeabi_llsr
);
140 EXPORT_SYMBOL(__aeabi_lmul
);
141 EXPORT_SYMBOL(__aeabi_uidiv
);
142 EXPORT_SYMBOL(__aeabi_uidivmod
);
143 EXPORT_SYMBOL(__aeabi_ulcmp
);
147 EXPORT_SYMBOL(_set_bit
);
148 EXPORT_SYMBOL(_test_and_set_bit
);
149 EXPORT_SYMBOL(_clear_bit
);
150 EXPORT_SYMBOL(_test_and_clear_bit
);
151 EXPORT_SYMBOL(_change_bit
);
152 EXPORT_SYMBOL(_test_and_change_bit
);
153 EXPORT_SYMBOL(_find_first_zero_bit_le
);
154 EXPORT_SYMBOL(_find_next_zero_bit_le
);
155 EXPORT_SYMBOL(_find_first_bit_le
);
156 EXPORT_SYMBOL(_find_next_bit_le
);
159 EXPORT_SYMBOL(_find_first_zero_bit_be
);
160 EXPORT_SYMBOL(_find_next_zero_bit_be
);
161 EXPORT_SYMBOL(_find_first_bit_be
);
162 EXPORT_SYMBOL(_find_next_bit_be
);
165 #ifdef CONFIG_FUNCTION_TRACER
166 EXPORT_SYMBOL(__gnu_mcount_nc
);
169 #ifdef CONFIG_ARM_PATCH_PHYS_VIRT
170 EXPORT_SYMBOL(__pv_phys_pfn_offset
);
171 EXPORT_SYMBOL(__pv_offset
);
174 #ifdef CONFIG_HAVE_ARM_SMCCC
175 EXPORT_SYMBOL(__arm_smccc_smc
);
176 EXPORT_SYMBOL(__arm_smccc_hvc
);