]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blame - arch/arm/kernel/armksyms.c
[ARM] 3103/1: ARM EABI: stack pointer must be 64-bit aligned (part 2)
[mirror_ubuntu-zesty-kernel.git] / arch / arm / kernel / armksyms.c
CommitLineData
1da177e4
LT
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/module.h>
11#include <linux/string.h>
d07ad967 12#include <linux/cryptohash.h>
1da177e4
LT
13#include <linux/delay.h>
14#include <linux/in6.h>
15#include <linux/syscalls.h>
16
17#include <asm/checksum.h>
18#include <asm/io.h>
19#include <asm/system.h>
20#include <asm/uaccess.h>
21
22/*
23 * libgcc functions - functions that are used internally by the
24 * compiler... (prototypes are not correct though, but that
25 * doesn't really matter since they're not versioned).
26 */
27extern void __ashldi3(void);
28extern void __ashrdi3(void);
29extern void __divsi3(void);
30extern void __lshrdi3(void);
31extern void __modsi3(void);
32extern void __muldi3(void);
33extern void __ucmpdi2(void);
1da177e4
LT
34extern void __udivsi3(void);
35extern void __umodsi3(void);
36extern void __do_div64(void);
37
38extern void fpundefinstr(void);
39extern void fp_enter(void);
40
41/*
42 * This has a special calling convention; it doesn't
43 * modify any of the usual registers, except for LR.
44 */
7bc7fc50
TP
45#define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "")
46
1da177e4 47#define EXPORT_SYMBOL_ALIAS(sym,orig) \
7bc7fc50 48 EXPORT_CRC_ALIAS(sym) \
a7b1bbbc
BD
49 static const struct kernel_symbol __ksymtab_##sym \
50 __attribute_used__ __attribute__((section("__ksymtab"))) = \
1da177e4
LT
51 { (unsigned long)&orig, #sym };
52
53/*
54 * floating point math emulator support.
55 * These symbols will never change their calling convention...
56 */
57EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter);
58EXPORT_SYMBOL_ALIAS(fp_printk,printk);
59EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig);
60
61EXPORT_SYMBOL(__backtrace);
62
63 /* platform dependent support */
64EXPORT_SYMBOL(__udelay);
65EXPORT_SYMBOL(__const_udelay);
66
67 /* networking */
68EXPORT_SYMBOL(csum_partial);
69EXPORT_SYMBOL(csum_partial_copy_nocheck);
70EXPORT_SYMBOL(__csum_ipv6_magic);
71
72 /* io */
73#ifndef __raw_readsb
74EXPORT_SYMBOL(__raw_readsb);
75#endif
76#ifndef __raw_readsw
77EXPORT_SYMBOL(__raw_readsw);
78#endif
79#ifndef __raw_readsl
80EXPORT_SYMBOL(__raw_readsl);
81#endif
82#ifndef __raw_writesb
83EXPORT_SYMBOL(__raw_writesb);
84#endif
85#ifndef __raw_writesw
86EXPORT_SYMBOL(__raw_writesw);
87#endif
88#ifndef __raw_writesl
89EXPORT_SYMBOL(__raw_writesl);
90#endif
91
92 /* string / mem functions */
93EXPORT_SYMBOL(strcpy);
94EXPORT_SYMBOL(strncpy);
95EXPORT_SYMBOL(strcat);
96EXPORT_SYMBOL(strncat);
97EXPORT_SYMBOL(strcmp);
98EXPORT_SYMBOL(strncmp);
99EXPORT_SYMBOL(strchr);
100EXPORT_SYMBOL(strlen);
101EXPORT_SYMBOL(strnlen);
102EXPORT_SYMBOL(strpbrk);
103EXPORT_SYMBOL(strrchr);
104EXPORT_SYMBOL(strstr);
105EXPORT_SYMBOL(memset);
106EXPORT_SYMBOL(memcpy);
107EXPORT_SYMBOL(memmove);
108EXPORT_SYMBOL(memcmp);
109EXPORT_SYMBOL(memscan);
110EXPORT_SYMBOL(memchr);
111EXPORT_SYMBOL(__memzero);
112
113 /* user mem (segment) */
114EXPORT_SYMBOL(__arch_copy_from_user);
115EXPORT_SYMBOL(__arch_copy_to_user);
116EXPORT_SYMBOL(__arch_clear_user);
117EXPORT_SYMBOL(__arch_strnlen_user);
118EXPORT_SYMBOL(__arch_strncpy_from_user);
119
120EXPORT_SYMBOL(__get_user_1);
121EXPORT_SYMBOL(__get_user_2);
122EXPORT_SYMBOL(__get_user_4);
1da177e4
LT
123
124EXPORT_SYMBOL(__put_user_1);
125EXPORT_SYMBOL(__put_user_2);
126EXPORT_SYMBOL(__put_user_4);
127EXPORT_SYMBOL(__put_user_8);
128
d07ad967
NP
129 /* crypto hash */
130EXPORT_SYMBOL(sha_transform);
131
1da177e4
LT
132 /* gcc lib functions */
133EXPORT_SYMBOL(__ashldi3);
134EXPORT_SYMBOL(__ashrdi3);
135EXPORT_SYMBOL(__divsi3);
136EXPORT_SYMBOL(__lshrdi3);
137EXPORT_SYMBOL(__modsi3);
138EXPORT_SYMBOL(__muldi3);
139EXPORT_SYMBOL(__ucmpdi2);
1da177e4
LT
140EXPORT_SYMBOL(__udivsi3);
141EXPORT_SYMBOL(__umodsi3);
142EXPORT_SYMBOL(__do_div64);
143
144 /* bitops */
145EXPORT_SYMBOL(_set_bit_le);
146EXPORT_SYMBOL(_test_and_set_bit_le);
147EXPORT_SYMBOL(_clear_bit_le);
148EXPORT_SYMBOL(_test_and_clear_bit_le);
149EXPORT_SYMBOL(_change_bit_le);
150EXPORT_SYMBOL(_test_and_change_bit_le);
151EXPORT_SYMBOL(_find_first_zero_bit_le);
152EXPORT_SYMBOL(_find_next_zero_bit_le);
153EXPORT_SYMBOL(_find_first_bit_le);
154EXPORT_SYMBOL(_find_next_bit_le);
155
156#ifdef __ARMEB__
157EXPORT_SYMBOL(_set_bit_be);
158EXPORT_SYMBOL(_test_and_set_bit_be);
159EXPORT_SYMBOL(_clear_bit_be);
160EXPORT_SYMBOL(_test_and_clear_bit_be);
161EXPORT_SYMBOL(_change_bit_be);
162EXPORT_SYMBOL(_test_and_change_bit_be);
163EXPORT_SYMBOL(_find_first_zero_bit_be);
164EXPORT_SYMBOL(_find_next_zero_bit_be);
165EXPORT_SYMBOL(_find_first_bit_be);
166EXPORT_SYMBOL(_find_next_bit_be);
167#endif
168
169 /* syscalls */
170EXPORT_SYMBOL(sys_write);
171EXPORT_SYMBOL(sys_read);
172EXPORT_SYMBOL(sys_lseek);
173EXPORT_SYMBOL(sys_open);
174EXPORT_SYMBOL(sys_exit);
175EXPORT_SYMBOL(sys_wait4);