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>
21 #include <linux/dma-mapping.h>
24 #include <asm/console.h>
25 #include <asm/hwrpb.h>
26 #include <asm/uaccess.h>
27 #include <asm/processor.h>
28 #include <asm/checksum.h>
29 #include <linux/interrupt.h>
32 #include <asm/machvec.h>
33 #include <asm/pgalloc.h>
34 #include <asm/semaphore.h>
35 #include <asm/tlbflush.h>
36 #include <asm/cacheflush.h>
39 #define __KERNEL_SYSCALLS__
40 #include <asm/unistd.h>
42 extern struct hwrpb_struct
*hwrpb
;
43 extern void dump_thread(struct pt_regs
*, struct user
*);
44 extern spinlock_t rtc_lock
;
46 /* these are C runtime functions with special calling conventions: */
47 extern void __divl (void);
48 extern void __reml (void);
49 extern void __divq (void);
50 extern void __remq (void);
51 extern void __divlu (void);
52 extern void __remlu (void);
53 extern void __divqu (void);
54 extern void __remqu (void);
56 EXPORT_SYMBOL(alpha_mv
);
57 EXPORT_SYMBOL(enable_irq
);
58 EXPORT_SYMBOL(disable_irq
);
59 EXPORT_SYMBOL(disable_irq_nosync
);
60 EXPORT_SYMBOL(probe_irq_mask
);
61 EXPORT_SYMBOL(screen_info
);
62 EXPORT_SYMBOL(perf_irq
);
63 EXPORT_SYMBOL(callback_getenv
);
64 EXPORT_SYMBOL(callback_setenv
);
65 EXPORT_SYMBOL(callback_save_env
);
66 #ifdef CONFIG_ALPHA_GENERIC
67 EXPORT_SYMBOL(alpha_using_srm
);
68 #endif /* CONFIG_ALPHA_GENERIC */
70 /* platform dependent support */
71 EXPORT_SYMBOL(strcat
);
72 EXPORT_SYMBOL(strcmp
);
73 EXPORT_SYMBOL(strcpy
);
74 EXPORT_SYMBOL(strlen
);
75 EXPORT_SYMBOL(strncmp
);
76 EXPORT_SYMBOL(strncpy
);
77 EXPORT_SYMBOL(strnlen
);
78 EXPORT_SYMBOL(strncat
);
79 EXPORT_SYMBOL(strstr
);
80 EXPORT_SYMBOL(strpbrk
);
81 EXPORT_SYMBOL(strchr
);
82 EXPORT_SYMBOL(strrchr
);
83 EXPORT_SYMBOL(memcmp
);
84 EXPORT_SYMBOL(memmove
);
85 EXPORT_SYMBOL(memscan
);
86 EXPORT_SYMBOL(__memcpy
);
87 EXPORT_SYMBOL(__memset
);
88 EXPORT_SYMBOL(__memsetw
);
89 EXPORT_SYMBOL(__constant_c_memset
);
90 EXPORT_SYMBOL(copy_page
);
91 EXPORT_SYMBOL(clear_page
);
93 EXPORT_SYMBOL(__direct_map_base
);
94 EXPORT_SYMBOL(__direct_map_size
);
97 EXPORT_SYMBOL(pci_alloc_consistent
);
98 EXPORT_SYMBOL(pci_free_consistent
);
99 EXPORT_SYMBOL(pci_map_single
);
100 EXPORT_SYMBOL(pci_map_page
);
101 EXPORT_SYMBOL(pci_unmap_single
);
102 EXPORT_SYMBOL(pci_unmap_page
);
103 EXPORT_SYMBOL(pci_map_sg
);
104 EXPORT_SYMBOL(pci_unmap_sg
);
105 EXPORT_SYMBOL(pci_dma_supported
);
106 EXPORT_SYMBOL(pci_dac_dma_supported
);
107 EXPORT_SYMBOL(pci_dac_page_to_dma
);
108 EXPORT_SYMBOL(pci_dac_dma_to_page
);
109 EXPORT_SYMBOL(pci_dac_dma_to_offset
);
110 EXPORT_SYMBOL(alpha_gendev_to_pci
);
112 EXPORT_SYMBOL(dma_set_mask
);
114 EXPORT_SYMBOL(dump_thread
);
115 EXPORT_SYMBOL(dump_elf_thread
);
116 EXPORT_SYMBOL(dump_elf_task
);
117 EXPORT_SYMBOL(dump_elf_task_fp
);
118 EXPORT_SYMBOL(hwrpb
);
119 EXPORT_SYMBOL(start_thread
);
120 EXPORT_SYMBOL(alpha_read_fp_reg
);
121 EXPORT_SYMBOL(alpha_read_fp_reg_s
);
122 EXPORT_SYMBOL(alpha_write_fp_reg
);
123 EXPORT_SYMBOL(alpha_write_fp_reg_s
);
125 /* In-kernel system calls. */
126 EXPORT_SYMBOL(kernel_thread
);
127 EXPORT_SYMBOL(sys_open
);
128 EXPORT_SYMBOL(sys_dup
);
129 EXPORT_SYMBOL(sys_exit
);
130 EXPORT_SYMBOL(sys_write
);
131 EXPORT_SYMBOL(sys_read
);
132 EXPORT_SYMBOL(sys_lseek
);
133 EXPORT_SYMBOL(execve
);
134 EXPORT_SYMBOL(sys_setsid
);
135 EXPORT_SYMBOL(sys_wait4
);
137 /* Networking helper routines. */
138 EXPORT_SYMBOL(csum_tcpudp_magic
);
139 EXPORT_SYMBOL(ip_compute_csum
);
140 EXPORT_SYMBOL(ip_fast_csum
);
141 EXPORT_SYMBOL(csum_partial_copy_nocheck
);
142 EXPORT_SYMBOL(csum_partial_copy_from_user
);
143 EXPORT_SYMBOL(csum_ipv6_magic
);
145 #ifdef CONFIG_MATHEMU_MODULE
146 extern long (*alpha_fp_emul_imprecise
)(struct pt_regs
*, unsigned long);
147 extern long (*alpha_fp_emul
) (unsigned long pc
);
148 EXPORT_SYMBOL(alpha_fp_emul_imprecise
);
149 EXPORT_SYMBOL(alpha_fp_emul
);
152 #ifdef CONFIG_ALPHA_BROKEN_IRQ_MASK
153 EXPORT_SYMBOL(__min_ipl
);
157 * The following are specially called from the uaccess assembly stubs.
159 EXPORT_SYMBOL(__copy_user
);
160 EXPORT_SYMBOL(__do_clear_user
);
161 EXPORT_SYMBOL(__strncpy_from_user
);
162 EXPORT_SYMBOL(__strnlen_user
);
164 /* Semaphore helper functions. */
165 EXPORT_SYMBOL(__down_failed
);
166 EXPORT_SYMBOL(__down_failed_interruptible
);
167 EXPORT_SYMBOL(__up_wakeup
);
169 EXPORT_SYMBOL(down_interruptible
);
170 EXPORT_SYMBOL(down_trylock
);
174 * SMP-specific symbols.
178 EXPORT_SYMBOL(synchronize_irq
);
179 EXPORT_SYMBOL(flush_tlb_mm
);
180 EXPORT_SYMBOL(flush_tlb_range
);
181 EXPORT_SYMBOL(flush_tlb_page
);
182 EXPORT_SYMBOL(smp_imb
);
183 EXPORT_SYMBOL(cpu_data
);
184 EXPORT_SYMBOL(smp_num_cpus
);
185 EXPORT_SYMBOL(smp_call_function
);
186 EXPORT_SYMBOL(smp_call_function_on_cpu
);
187 EXPORT_SYMBOL(_atomic_dec_and_lock
);
188 #ifdef CONFIG_DEBUG_SPINLOCK
189 EXPORT_SYMBOL(_raw_spin_unlock
);
190 EXPORT_SYMBOL(debug_spin_lock
);
191 EXPORT_SYMBOL(debug_spin_trylock
);
193 #ifdef CONFIG_DEBUG_RWLOCK
194 EXPORT_SYMBOL(_raw_write_lock
);
195 EXPORT_SYMBOL(_raw_read_lock
);
197 EXPORT_SYMBOL(cpu_present_mask
);
198 #endif /* CONFIG_SMP */
201 * NUMA specific symbols
203 #ifdef CONFIG_DISCONTIGMEM
204 EXPORT_SYMBOL(node_data
);
205 #endif /* CONFIG_DISCONTIGMEM */
207 EXPORT_SYMBOL(rtc_lock
);
210 * The following are special because they're not called
211 * explicitly (the C compiler or assembler generates them in
212 * response to division operations). Fortunately, their
213 * interface isn't gonna change any time soon now, so it's OK
214 * to leave it out of version control.
218 EXPORT_SYMBOL(__divl
);
219 EXPORT_SYMBOL(__divlu
);
220 EXPORT_SYMBOL(__divq
);
221 EXPORT_SYMBOL(__divqu
);
222 EXPORT_SYMBOL(__reml
);
223 EXPORT_SYMBOL(__remlu
);
224 EXPORT_SYMBOL(__remq
);
225 EXPORT_SYMBOL(__remqu
);
226 EXPORT_SYMBOL(memcpy
);
227 EXPORT_SYMBOL(memset
);
228 EXPORT_SYMBOL(memchr
);
230 EXPORT_SYMBOL(get_wchan
);
232 #ifdef CONFIG_ALPHA_IRONGATE
233 EXPORT_SYMBOL(irongate_ioremap
);
234 EXPORT_SYMBOL(irongate_iounmap
);