aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/armksyms.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/arm/kernel/armksyms.c
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/arm/kernel/armksyms.c')
-rw-r--r--arch/arm/kernel/armksyms.c175
1 files changed, 175 insertions, 0 deletions
diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c
new file mode 100644
index 000000000000..4c38bd8bc298
--- /dev/null
+++ b/arch/arm/kernel/armksyms.c
@@ -0,0 +1,175 @@
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>
12#include <linux/delay.h>
13#include <linux/in6.h>
14#include <linux/syscalls.h>
15
16#include <asm/checksum.h>
17#include <asm/io.h>
18#include <asm/system.h>
19#include <asm/uaccess.h>
20
21/*
22 * libgcc functions - functions that are used internally by the
23 * compiler... (prototypes are not correct though, but that
24 * doesn't really matter since they're not versioned).
25 */
26extern void __ashldi3(void);
27extern void __ashrdi3(void);
28extern void __divsi3(void);
29extern void __lshrdi3(void);
30extern void __modsi3(void);
31extern void __muldi3(void);
32extern void __ucmpdi2(void);
33extern void __udivdi3(void);
34extern void __umoddi3(void);
35extern void __udivmoddi4(void);
36extern void __udivsi3(void);
37extern void __umodsi3(void);
38extern void __do_div64(void);
39
40extern void fpundefinstr(void);
41extern void fp_enter(void);
42
43/*
44 * This has a special calling convention; it doesn't
45 * modify any of the usual registers, except for LR.
46 */
47#define EXPORT_SYMBOL_ALIAS(sym,orig) \
48 const struct kernel_symbol __ksymtab_##sym \
49 __attribute__((section("__ksymtab"))) = \
50 { (unsigned long)&orig, #sym };
51
52/*
53 * floating point math emulator support.
54 * These symbols will never change their calling convention...
55 */
56EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter);
57EXPORT_SYMBOL_ALIAS(fp_printk,printk);
58EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig);
59
60EXPORT_SYMBOL(__backtrace);
61
62 /* platform dependent support */
63EXPORT_SYMBOL(__udelay);
64EXPORT_SYMBOL(__const_udelay);
65
66 /* networking */
67EXPORT_SYMBOL(csum_partial);
68EXPORT_SYMBOL(csum_partial_copy_nocheck);
69EXPORT_SYMBOL(__csum_ipv6_magic);
70
71 /* io */
72#ifndef __raw_readsb
73EXPORT_SYMBOL(__raw_readsb);
74#endif
75#ifndef __raw_readsw
76EXPORT_SYMBOL(__raw_readsw);
77#endif
78#ifndef __raw_readsl
79EXPORT_SYMBOL(__raw_readsl);
80#endif
81#ifndef __raw_writesb
82EXPORT_SYMBOL(__raw_writesb);
83#endif
84#ifndef __raw_writesw
85EXPORT_SYMBOL(__raw_writesw);
86#endif
87#ifndef __raw_writesl
88EXPORT_SYMBOL(__raw_writesl);
89#endif
90
91 /* string / mem functions */
92EXPORT_SYMBOL(strcpy);
93EXPORT_SYMBOL(strncpy);
94EXPORT_SYMBOL(strcat);
95EXPORT_SYMBOL(strncat);
96EXPORT_SYMBOL(strcmp);
97EXPORT_SYMBOL(strncmp);
98EXPORT_SYMBOL(strchr);
99EXPORT_SYMBOL(strlen);
100EXPORT_SYMBOL(strnlen);
101EXPORT_SYMBOL(strpbrk);
102EXPORT_SYMBOL(strrchr);
103EXPORT_SYMBOL(strstr);
104EXPORT_SYMBOL(memset);
105EXPORT_SYMBOL(memcpy);
106EXPORT_SYMBOL(memmove);
107EXPORT_SYMBOL(memcmp);
108EXPORT_SYMBOL(memscan);
109EXPORT_SYMBOL(memchr);
110EXPORT_SYMBOL(__memzero);
111
112 /* user mem (segment) */
113EXPORT_SYMBOL(__arch_copy_from_user);
114EXPORT_SYMBOL(__arch_copy_to_user);
115EXPORT_SYMBOL(__arch_clear_user);
116EXPORT_SYMBOL(__arch_strnlen_user);
117EXPORT_SYMBOL(__arch_strncpy_from_user);
118
119EXPORT_SYMBOL(__get_user_1);
120EXPORT_SYMBOL(__get_user_2);
121EXPORT_SYMBOL(__get_user_4);
122EXPORT_SYMBOL(__get_user_8);
123
124EXPORT_SYMBOL(__put_user_1);
125EXPORT_SYMBOL(__put_user_2);
126EXPORT_SYMBOL(__put_user_4);
127EXPORT_SYMBOL(__put_user_8);
128
129 /* gcc lib functions */
130EXPORT_SYMBOL(__ashldi3);
131EXPORT_SYMBOL(__ashrdi3);
132EXPORT_SYMBOL(__divsi3);
133EXPORT_SYMBOL(__lshrdi3);
134EXPORT_SYMBOL(__modsi3);
135EXPORT_SYMBOL(__muldi3);
136EXPORT_SYMBOL(__ucmpdi2);
137EXPORT_SYMBOL(__udivdi3);
138EXPORT_SYMBOL(__umoddi3);
139EXPORT_SYMBOL(__udivmoddi4);
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);