2 * linux/arch/alpha/kernel/ksyms.c
4 * Export the alpha-specific functions that are needed for loadable
8 #include <linux/config.h>
9 #include <linux/module.h>
10 #include <linux/string.h>
11 #include <linux/user.h>
12 #include <linux/elfcore.h>
13 #include <linux/socket.h>
14 #include <linux/syscalls.h>
16 #include <linux/in6.h>
17 #include <linux/pci.h>
18 #include <linux/tty.h>
20 #include <linux/delay.h>
23 #include <asm/console.h>
24 #include <asm/hwrpb.h>
25 #include <asm/uaccess.h>
26 #include <asm/processor.h>
27 #include <asm/checksum.h>
28 #include <linux/interrupt.h>
31 #include <asm/machvec.h>
32 #include <asm/pgalloc.h>
33 #include <asm/semaphore.h>
34 #include <asm/tlbflush.h>
35 #include <asm/cacheflush.h>
38 #define __KERNEL_SYSCALLS__
39 #include <asm/unistd.h>
41 extern struct hwrpb_struct *hwrpb;
42 extern void dump_thread(struct pt_regs *, struct user *);
43 extern spinlock_t rtc_lock;
45 /* these are C runtime functions with special calling conventions: */
46 extern void __divl (void);
47 extern void __reml (void);
48 extern void __divq (void);
49 extern void __remq (void);
50 extern void __divlu (void);
51 extern void __remlu (void);
52 extern void __divqu (void);
53 extern void __remqu (void);
55 EXPORT_SYMBOL(alpha_mv);
56 EXPORT_SYMBOL(enable_irq);
57 EXPORT_SYMBOL(disable_irq);
58 EXPORT_SYMBOL(disable_irq_nosync);
59 EXPORT_SYMBOL(probe_irq_mask);
60 EXPORT_SYMBOL(screen_info);
61 EXPORT_SYMBOL(perf_irq);
62 EXPORT_SYMBOL(callback_getenv);
63 EXPORT_SYMBOL(callback_setenv);
64 EXPORT_SYMBOL(callback_save_env);
65 #ifdef CONFIG_ALPHA_GENERIC
66 EXPORT_SYMBOL(alpha_using_srm);
67 #endif /* CONFIG_ALPHA_GENERIC */
69 /* platform dependent support */
76 EXPORT_SYMBOL(_readb);
77 EXPORT_SYMBOL(_readw);
78 EXPORT_SYMBOL(_readl);
79 EXPORT_SYMBOL(_writeb);
80 EXPORT_SYMBOL(_writew);
81 EXPORT_SYMBOL(_writel);
82 EXPORT_SYMBOL(___raw_readb);
83 EXPORT_SYMBOL(___raw_readw);
84 EXPORT_SYMBOL(___raw_readl);
85 EXPORT_SYMBOL(___raw_readq);
86 EXPORT_SYMBOL(___raw_writeb);
87 EXPORT_SYMBOL(___raw_writew);
88 EXPORT_SYMBOL(___raw_writel);
89 EXPORT_SYMBOL(___raw_writeq);
90 EXPORT_SYMBOL(_memcpy_fromio);
91 EXPORT_SYMBOL(_memcpy_toio);
92 EXPORT_SYMBOL(_memset_c_io);
93 EXPORT_SYMBOL(scr_memcpyw);
100 EXPORT_SYMBOL(strcat);
101 EXPORT_SYMBOL(strcmp);
102 EXPORT_SYMBOL(strcpy);
103 EXPORT_SYMBOL(strlen);
104 EXPORT_SYMBOL(strncmp);
105 EXPORT_SYMBOL(strncpy);
106 EXPORT_SYMBOL(strnlen);
107 EXPORT_SYMBOL(strncat);
108 EXPORT_SYMBOL(strstr);
109 EXPORT_SYMBOL(strpbrk);
110 EXPORT_SYMBOL(strchr);
111 EXPORT_SYMBOL(strrchr);
112 EXPORT_SYMBOL(memcmp);
113 EXPORT_SYMBOL(memmove);
114 EXPORT_SYMBOL(memscan);
115 EXPORT_SYMBOL(__memcpy);
116 EXPORT_SYMBOL(__memset);
117 EXPORT_SYMBOL(__memsetw);
118 EXPORT_SYMBOL(__constant_c_memset);
119 EXPORT_SYMBOL(copy_page);
120 EXPORT_SYMBOL(clear_page);
122 EXPORT_SYMBOL(__direct_map_base);
123 EXPORT_SYMBOL(__direct_map_size);
126 EXPORT_SYMBOL(pci_alloc_consistent);
127 EXPORT_SYMBOL(pci_free_consistent);
128 EXPORT_SYMBOL(pci_map_single);
129 EXPORT_SYMBOL(pci_map_page);
130 EXPORT_SYMBOL(pci_unmap_single);
131 EXPORT_SYMBOL(pci_unmap_page);
132 EXPORT_SYMBOL(pci_map_sg);
133 EXPORT_SYMBOL(pci_unmap_sg);
134 EXPORT_SYMBOL(pci_dma_supported);
135 EXPORT_SYMBOL(pci_dac_dma_supported);
136 EXPORT_SYMBOL(pci_dac_page_to_dma);
137 EXPORT_SYMBOL(pci_dac_dma_to_page);
138 EXPORT_SYMBOL(pci_dac_dma_to_offset);
141 EXPORT_SYMBOL(dump_thread);
142 EXPORT_SYMBOL(dump_elf_thread);
143 EXPORT_SYMBOL(dump_elf_task);
144 EXPORT_SYMBOL(dump_elf_task_fp);
145 EXPORT_SYMBOL(hwrpb);
146 EXPORT_SYMBOL(start_thread);
147 EXPORT_SYMBOL(alpha_read_fp_reg);
148 EXPORT_SYMBOL(alpha_read_fp_reg_s);
149 EXPORT_SYMBOL(alpha_write_fp_reg);
150 EXPORT_SYMBOL(alpha_write_fp_reg_s);
152 /* In-kernel system calls. */
153 EXPORT_SYMBOL(kernel_thread);
154 EXPORT_SYMBOL(sys_open);
155 EXPORT_SYMBOL(sys_dup);
156 EXPORT_SYMBOL(sys_exit);
157 EXPORT_SYMBOL(sys_write);
158 EXPORT_SYMBOL(sys_read);
159 EXPORT_SYMBOL(sys_lseek);
160 EXPORT_SYMBOL(execve);
161 EXPORT_SYMBOL(sys_setsid);
162 EXPORT_SYMBOL(sys_wait4);
164 /* Networking helper routines. */
165 EXPORT_SYMBOL(csum_tcpudp_magic);
166 EXPORT_SYMBOL(ip_compute_csum);
167 EXPORT_SYMBOL(ip_fast_csum);
168 EXPORT_SYMBOL(csum_partial_copy_nocheck);
169 EXPORT_SYMBOL(csum_partial_copy_from_user);
170 EXPORT_SYMBOL(csum_ipv6_magic);
172 #ifdef CONFIG_MATHEMU_MODULE
173 extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long);
174 extern long (*alpha_fp_emul) (unsigned long pc);
175 EXPORT_SYMBOL(alpha_fp_emul_imprecise);
176 EXPORT_SYMBOL(alpha_fp_emul);
179 #ifdef CONFIG_ALPHA_BROKEN_IRQ_MASK
180 EXPORT_SYMBOL(__min_ipl);
184 * The following are specially called from the uaccess assembly stubs.
186 EXPORT_SYMBOL_NOVERS(__copy_user);
187 EXPORT_SYMBOL_NOVERS(__do_clear_user);
188 EXPORT_SYMBOL(__strncpy_from_user);
189 EXPORT_SYMBOL(__strnlen_user);
191 /* Semaphore helper functions. */
192 EXPORT_SYMBOL(__down_failed);
193 EXPORT_SYMBOL(__down_failed_interruptible);
194 EXPORT_SYMBOL(__up_wakeup);
196 EXPORT_SYMBOL(down_interruptible);
197 EXPORT_SYMBOL(down_trylock);
201 * SMP-specific symbols.
205 EXPORT_SYMBOL(synchronize_irq);
206 EXPORT_SYMBOL(flush_tlb_all);
207 EXPORT_SYMBOL(flush_tlb_mm);
208 EXPORT_SYMBOL(flush_tlb_range);
209 EXPORT_SYMBOL(flush_tlb_page);
210 EXPORT_SYMBOL(smp_imb);
211 EXPORT_SYMBOL(cpu_data);
212 EXPORT_SYMBOL(smp_num_cpus);
213 EXPORT_SYMBOL(smp_call_function);
214 EXPORT_SYMBOL(smp_call_function_on_cpu);
215 EXPORT_SYMBOL(atomic_dec_and_lock);
216 #ifdef CONFIG_DEBUG_SPINLOCK
217 EXPORT_SYMBOL(_raw_spin_unlock);
218 EXPORT_SYMBOL(debug_spin_lock);
219 EXPORT_SYMBOL(debug_spin_trylock);
221 #ifdef CONFIG_DEBUG_RWLOCK
222 EXPORT_SYMBOL(_raw_write_lock);
223 EXPORT_SYMBOL(_raw_read_lock);
225 EXPORT_SYMBOL(cpu_present_mask);
226 #endif /* CONFIG_SMP */
229 * NUMA specific symbols
231 #ifdef CONFIG_DISCONTIGMEM
232 EXPORT_SYMBOL(node_data);
233 #endif /* CONFIG_DISCONTIGMEM */
235 EXPORT_SYMBOL(rtc_lock);
238 * The following are special because they're not called
239 * explicitly (the C compiler or assembler generates them in
240 * response to division operations). Fortunately, their
241 * interface isn't gonna change any time soon now, so it's OK
242 * to leave it out of version control.
246 EXPORT_SYMBOL_NOVERS(__divl);
247 EXPORT_SYMBOL_NOVERS(__divlu);
248 EXPORT_SYMBOL_NOVERS(__divq);
249 EXPORT_SYMBOL_NOVERS(__divqu);
250 EXPORT_SYMBOL_NOVERS(__reml);
251 EXPORT_SYMBOL_NOVERS(__remlu);
252 EXPORT_SYMBOL_NOVERS(__remq);
253 EXPORT_SYMBOL_NOVERS(__remqu);
254 EXPORT_SYMBOL_NOVERS(memcpy);
255 EXPORT_SYMBOL_NOVERS(memset);
256 EXPORT_SYMBOL_NOVERS(memchr);
258 EXPORT_SYMBOL(get_wchan);
260 #ifdef CONFIG_ALPHA_IRONGATE
261 EXPORT_SYMBOL(irongate_ioremap);
262 EXPORT_SYMBOL(irongate_iounmap);