blob: 07907b6ecb634126b116236e3a92fcba632d4ec1 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * linux/arch/arm26/kernel/armksyms.c
3 *
4 * Copyright (C) 2003 Ian Molton
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>
Linus Torvalds1da177e2005-04-16 15:20:36 -070011#include <linux/module.h>
12#include <linux/user.h>
13#include <linux/string.h>
14#include <linux/fs.h>
15#include <linux/mm.h>
16#include <linux/mman.h>
17#include <linux/delay.h>
18#include <linux/in6.h>
19#include <linux/interrupt.h>
20#include <linux/pm.h>
21#include <linux/tty.h>
22#include <linux/vt_kern.h>
23#include <linux/smp_lock.h>
24#include <linux/syscalls.h>
25
26#include <asm/byteorder.h>
27#include <asm/elf.h>
28#include <asm/io.h>
29#include <asm/irq.h>
30#include <asm/processor.h>
31#include <asm/semaphore.h>
32#include <asm/system.h>
33#include <asm/uaccess.h>
34#include <asm/checksum.h>
35#include <asm/mach-types.h>
36
Linus Torvalds1da177e2005-04-16 15:20:36 -070037extern int dump_fpu(struct pt_regs *, struct user_fp_struct *);
38extern void inswb(unsigned int port, void *to, int len);
39extern void outswb(unsigned int port, const void *to, int len);
40
41extern void __bad_xchg(volatile void *ptr, int size);
42
43/*
44 * libgcc functions - functions that are used internally by the
45 * compiler... (prototypes are not correct though, but that
46 * doesn't really matter since they're not versioned).
47 */
48extern void __ashldi3(void);
49extern void __ashrdi3(void);
50extern void __divsi3(void);
51extern void __lshrdi3(void);
52extern void __modsi3(void);
53extern void __muldi3(void);
54extern void __ucmpdi2(void);
55extern void __udivdi3(void);
56extern void __umoddi3(void);
57extern void __udivmoddi4(void);
58extern void __udivsi3(void);
59extern void __umodsi3(void);
60extern void abort(void);
61
62extern void ret_from_exception(void);
63extern void fpundefinstr(void);
64extern void fp_enter(void);
65
66/*
67 * This has a special calling convention; it doesn't
68 * modify any of the usual registers, except for LR.
69 * FIXME - we used to use our own local version - looks to be in kernel/softirq now
70 */
71//extern void __do_softirq(void);
72
73#define EXPORT_SYMBOL_ALIAS(sym,orig) \
74 const char __kstrtab_##sym[] \
75 __attribute__((section(".kstrtab"))) = \
76 __MODULE_STRING(sym); \
77 const struct module_symbol __ksymtab_##sym \
78 __attribute__((section("__ksymtab"))) = \
79 { (unsigned long)&orig, __kstrtab_##sym };
80
81/*
82 * floating point math emulator support.
83 * These symbols will never change their calling convention...
84 */
85EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter);
86EXPORT_SYMBOL_ALIAS(fp_printk,printk);
87EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig);
88
89EXPORT_SYMBOL(fpundefinstr);
90EXPORT_SYMBOL(ret_from_exception);
91
92#ifdef CONFIG_VT
93EXPORT_SYMBOL(kd_mksound);
94#endif
95
96//EXPORT_SYMBOL(__do_softirq);
97
98 /* platform dependent support */
99EXPORT_SYMBOL(dump_thread);
100EXPORT_SYMBOL(dump_fpu);
101EXPORT_SYMBOL(udelay);
102EXPORT_SYMBOL(kernel_thread);
103EXPORT_SYMBOL(system_rev);
104EXPORT_SYMBOL(system_serial_low);
105EXPORT_SYMBOL(system_serial_high);
106#ifdef CONFIG_DEBUG_BUGVERBOSE
107EXPORT_SYMBOL(__bug);
108#endif
109EXPORT_SYMBOL(__bad_xchg);
110EXPORT_SYMBOL(__readwrite_bug);
111EXPORT_SYMBOL(enable_irq);
112EXPORT_SYMBOL(disable_irq);
113EXPORT_SYMBOL(set_irq_type);
114EXPORT_SYMBOL(pm_idle);
115EXPORT_SYMBOL(pm_power_off);
116
117 /* processor dependencies */
118EXPORT_SYMBOL(__machine_arch_type);
119
120 /* networking */
121EXPORT_SYMBOL(csum_partial_copy_nocheck);
122EXPORT_SYMBOL(__csum_ipv6_magic);
123
124 /* io */
125#ifndef __raw_readsb
126EXPORT_SYMBOL(__raw_readsb);
127#endif
128#ifndef __raw_readsw
129EXPORT_SYMBOL(__raw_readsw);
130#endif
131#ifndef __raw_readsl
132EXPORT_SYMBOL(__raw_readsl);
133#endif
134#ifndef __raw_writesb
135EXPORT_SYMBOL(__raw_writesb);
136#endif
137#ifndef __raw_writesw
138EXPORT_SYMBOL(__raw_writesw);
139#endif
140#ifndef __raw_writesl
141EXPORT_SYMBOL(__raw_writesl);
142#endif
143
144 /* string / mem functions */
145EXPORT_SYMBOL(strcpy);
146EXPORT_SYMBOL(strncpy);
147EXPORT_SYMBOL(strcat);
148EXPORT_SYMBOL(strncat);
149EXPORT_SYMBOL(strcmp);
150EXPORT_SYMBOL(strncmp);
151EXPORT_SYMBOL(strchr);
152EXPORT_SYMBOL(strlen);
153EXPORT_SYMBOL(strnlen);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154EXPORT_SYMBOL(strrchr);
155EXPORT_SYMBOL(strstr);
156EXPORT_SYMBOL(memset);
157EXPORT_SYMBOL(memcpy);
158EXPORT_SYMBOL(memmove);
159EXPORT_SYMBOL(memcmp);
160EXPORT_SYMBOL(memscan);
161EXPORT_SYMBOL(__memzero);
162
163 /* user mem (segment) */
164EXPORT_SYMBOL(uaccess_kernel);
165EXPORT_SYMBOL(uaccess_user);
166
167EXPORT_SYMBOL(__get_user_1);
168EXPORT_SYMBOL(__get_user_2);
169EXPORT_SYMBOL(__get_user_4);
170EXPORT_SYMBOL(__get_user_8);
171
172EXPORT_SYMBOL(__put_user_1);
173EXPORT_SYMBOL(__put_user_2);
174EXPORT_SYMBOL(__put_user_4);
175EXPORT_SYMBOL(__put_user_8);
176
177 /* gcc lib functions */
178EXPORT_SYMBOL(__ashldi3);
179EXPORT_SYMBOL(__ashrdi3);
180EXPORT_SYMBOL(__divsi3);
181EXPORT_SYMBOL(__lshrdi3);
182EXPORT_SYMBOL(__modsi3);
183EXPORT_SYMBOL(__muldi3);
184EXPORT_SYMBOL(__ucmpdi2);
185EXPORT_SYMBOL(__udivdi3);
186EXPORT_SYMBOL(__umoddi3);
187EXPORT_SYMBOL(__udivmoddi4);
188EXPORT_SYMBOL(__udivsi3);
189EXPORT_SYMBOL(__umodsi3);
190
191 /* bitops */
192EXPORT_SYMBOL(_set_bit_le);
193EXPORT_SYMBOL(_test_and_set_bit_le);
194EXPORT_SYMBOL(_clear_bit_le);
195EXPORT_SYMBOL(_test_and_clear_bit_le);
196EXPORT_SYMBOL(_change_bit_le);
197EXPORT_SYMBOL(_test_and_change_bit_le);
198EXPORT_SYMBOL(_find_first_zero_bit_le);
199EXPORT_SYMBOL(_find_next_zero_bit_le);
200
201 /* elf */
202EXPORT_SYMBOL(elf_platform);
203EXPORT_SYMBOL(elf_hwcap);
204
205 /* syscalls */
206EXPORT_SYMBOL(sys_write);
207EXPORT_SYMBOL(sys_read);
208EXPORT_SYMBOL(sys_lseek);
209EXPORT_SYMBOL(sys_open);
210EXPORT_SYMBOL(sys_exit);
211EXPORT_SYMBOL(sys_wait4);
212
Linus Torvalds1da177e2005-04-16 15:20:36 -0700213#ifdef CONFIG_PREEMPT
214EXPORT_SYMBOL(kernel_flag);
215#endif