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