blob: da69e660574bf1510f8f1457d07c7368b7de12e2 [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>
11#include <linux/string.h>
Nicolas Pitred07ad962005-11-08 22:43:05 +000012#include <linux/cryptohash.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#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);
Linus Torvalds1da177e2005-04-16 15:20:36 -070034extern void __udivsi3(void);
35extern void __umodsi3(void);
36extern void __do_div64(void);
37
Nicolas Pitreba95e4e2006-01-14 16:18:29 +000038extern void __aeabi_idiv(void);
39extern void __aeabi_idivmod(void);
40extern void __aeabi_lasr(void);
41extern void __aeabi_llsl(void);
42extern void __aeabi_llsr(void);
43extern void __aeabi_lmul(void);
44extern void __aeabi_uidiv(void);
45extern void __aeabi_uidivmod(void);
46extern void __aeabi_ulcmp(void);
47
Linus Torvalds1da177e2005-04-16 15:20:36 -070048extern void fpundefinstr(void);
49extern void fp_enter(void);
50
51/*
52 * This has a special calling convention; it doesn't
53 * modify any of the usual registers, except for LR.
54 */
Todd Poynor7bc7fc52005-07-06 23:06:05 +010055#define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "")
56
Linus Torvalds1da177e2005-04-16 15:20:36 -070057#define EXPORT_SYMBOL_ALIAS(sym,orig) \
Todd Poynor7bc7fc52005-07-06 23:06:05 +010058 EXPORT_CRC_ALIAS(sym) \
Ben Dooksa7b1bbb2005-10-12 19:58:07 +010059 static const struct kernel_symbol __ksymtab_##sym \
60 __attribute_used__ __attribute__((section("__ksymtab"))) = \
Linus Torvalds1da177e2005-04-16 15:20:36 -070061 { (unsigned long)&orig, #sym };
62
63/*
64 * floating point math emulator support.
65 * These symbols will never change their calling convention...
66 */
67EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter);
68EXPORT_SYMBOL_ALIAS(fp_printk,printk);
69EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig);
70
71EXPORT_SYMBOL(__backtrace);
72
73 /* platform dependent support */
74EXPORT_SYMBOL(__udelay);
75EXPORT_SYMBOL(__const_udelay);
76
77 /* networking */
78EXPORT_SYMBOL(csum_partial);
79EXPORT_SYMBOL(csum_partial_copy_nocheck);
80EXPORT_SYMBOL(__csum_ipv6_magic);
81
82 /* io */
83#ifndef __raw_readsb
84EXPORT_SYMBOL(__raw_readsb);
85#endif
86#ifndef __raw_readsw
87EXPORT_SYMBOL(__raw_readsw);
88#endif
89#ifndef __raw_readsl
90EXPORT_SYMBOL(__raw_readsl);
91#endif
92#ifndef __raw_writesb
93EXPORT_SYMBOL(__raw_writesb);
94#endif
95#ifndef __raw_writesw
96EXPORT_SYMBOL(__raw_writesw);
97#endif
98#ifndef __raw_writesl
99EXPORT_SYMBOL(__raw_writesl);
100#endif
101
102 /* string / mem functions */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103EXPORT_SYMBOL(strchr);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104EXPORT_SYMBOL(strrchr);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105EXPORT_SYMBOL(memset);
106EXPORT_SYMBOL(memcpy);
107EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700108EXPORT_SYMBOL(memchr);
109EXPORT_SYMBOL(__memzero);
110
111 /* user mem (segment) */
Russell King9641c7c2006-06-21 20:38:17 +0100112EXPORT_SYMBOL(__strnlen_user);
113EXPORT_SYMBOL(__strncpy_from_user);
114
115#ifdef CONFIG_MMU
Russell King02fcb972006-06-21 14:44:52 +0100116EXPORT_SYMBOL(__copy_from_user);
117EXPORT_SYMBOL(__copy_to_user);
118EXPORT_SYMBOL(__clear_user);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119
120EXPORT_SYMBOL(__get_user_1);
121EXPORT_SYMBOL(__get_user_2);
122EXPORT_SYMBOL(__get_user_4);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700123
124EXPORT_SYMBOL(__put_user_1);
125EXPORT_SYMBOL(__put_user_2);
126EXPORT_SYMBOL(__put_user_4);
127EXPORT_SYMBOL(__put_user_8);
Russell King9641c7c2006-06-21 20:38:17 +0100128#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700129
Nicolas Pitred07ad962005-11-08 22:43:05 +0000130 /* crypto hash */
131EXPORT_SYMBOL(sha_transform);
132
Linus Torvalds1da177e2005-04-16 15:20:36 -0700133 /* gcc lib functions */
134EXPORT_SYMBOL(__ashldi3);
135EXPORT_SYMBOL(__ashrdi3);
136EXPORT_SYMBOL(__divsi3);
137EXPORT_SYMBOL(__lshrdi3);
138EXPORT_SYMBOL(__modsi3);
139EXPORT_SYMBOL(__muldi3);
140EXPORT_SYMBOL(__ucmpdi2);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141EXPORT_SYMBOL(__udivsi3);
142EXPORT_SYMBOL(__umodsi3);
143EXPORT_SYMBOL(__do_div64);
144
Nicolas Pitreba95e4e2006-01-14 16:18:29 +0000145#ifdef CONFIG_AEABI
146EXPORT_SYMBOL(__aeabi_idiv);
147EXPORT_SYMBOL(__aeabi_idivmod);
148EXPORT_SYMBOL(__aeabi_lasr);
149EXPORT_SYMBOL(__aeabi_llsl);
150EXPORT_SYMBOL(__aeabi_llsr);
151EXPORT_SYMBOL(__aeabi_lmul);
152EXPORT_SYMBOL(__aeabi_uidiv);
153EXPORT_SYMBOL(__aeabi_uidivmod);
154EXPORT_SYMBOL(__aeabi_ulcmp);
155#endif
156
Linus Torvalds1da177e2005-04-16 15:20:36 -0700157 /* bitops */
158EXPORT_SYMBOL(_set_bit_le);
159EXPORT_SYMBOL(_test_and_set_bit_le);
160EXPORT_SYMBOL(_clear_bit_le);
161EXPORT_SYMBOL(_test_and_clear_bit_le);
162EXPORT_SYMBOL(_change_bit_le);
163EXPORT_SYMBOL(_test_and_change_bit_le);
164EXPORT_SYMBOL(_find_first_zero_bit_le);
165EXPORT_SYMBOL(_find_next_zero_bit_le);
166EXPORT_SYMBOL(_find_first_bit_le);
167EXPORT_SYMBOL(_find_next_bit_le);
168
169#ifdef __ARMEB__
170EXPORT_SYMBOL(_set_bit_be);
171EXPORT_SYMBOL(_test_and_set_bit_be);
172EXPORT_SYMBOL(_clear_bit_be);
173EXPORT_SYMBOL(_test_and_clear_bit_be);
174EXPORT_SYMBOL(_change_bit_be);
175EXPORT_SYMBOL(_test_and_change_bit_be);
176EXPORT_SYMBOL(_find_first_zero_bit_be);
177EXPORT_SYMBOL(_find_next_zero_bit_be);
178EXPORT_SYMBOL(_find_first_bit_be);
179EXPORT_SYMBOL(_find_next_bit_be);
180#endif
181
182 /* syscalls */
183EXPORT_SYMBOL(sys_write);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700184EXPORT_SYMBOL(sys_lseek);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700185EXPORT_SYMBOL(sys_exit);
186EXPORT_SYMBOL(sys_wait4);