* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / arch / alpha / kernel / alpha_ksyms.c
blobf280e454165cc8203139255cec53b57cff91cf3e
1 /*
2 * linux/arch/alpha/kernel/ksyms.c
4 * Export the alpha-specific functions that are needed for loadable
5 * modules.
6 */
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/in.h>
15 #include <linux/in6.h>
16 #include <linux/pci.h>
17 #include <linux/tty.h>
18 #include <linux/mm.h>
20 #include <asm/io.h>
21 #include <asm/hwrpb.h>
22 #include <asm/uaccess.h>
23 #include <asm/processor.h>
24 #include <asm/checksum.h>
25 #include <linux/interrupt.h>
26 #include <asm/softirq.h>
27 #include <asm/fpu.h>
28 #include <asm/irq.h>
29 #include <asm/machvec.h>
30 #include <asm/pgtable.h>
31 #include <asm/semaphore.h>
33 #define __KERNEL_SYSCALLS__
34 #include <asm/unistd.h>
36 extern struct hwrpb_struct *hwrpb;
37 extern void dump_thread(struct pt_regs *, struct user *);
38 extern int dump_fpu(struct pt_regs *, elf_fpregset_t *);
39 extern void ___delay(void);
41 /* these are C runtime functions with special calling conventions: */
42 extern void __divl (void);
43 extern void __reml (void);
44 extern void __divq (void);
45 extern void __remq (void);
46 extern void __divlu (void);
47 extern void __remlu (void);
48 extern void __divqu (void);
49 extern void __remqu (void);
51 EXPORT_SYMBOL(alpha_mv);
52 EXPORT_SYMBOL(enable_irq);
53 EXPORT_SYMBOL(disable_irq);
54 EXPORT_SYMBOL(disable_irq_nosync);
55 EXPORT_SYMBOL(screen_info);
56 EXPORT_SYMBOL(perf_irq);
58 /* platform dependent support */
59 EXPORT_SYMBOL(_inb);
60 EXPORT_SYMBOL(_inw);
61 EXPORT_SYMBOL(_inl);
62 EXPORT_SYMBOL(_outb);
63 EXPORT_SYMBOL(_outw);
64 EXPORT_SYMBOL(_outl);
65 EXPORT_SYMBOL(_readb);
66 EXPORT_SYMBOL(_readw);
67 EXPORT_SYMBOL(_readl);
68 EXPORT_SYMBOL(_writeb);
69 EXPORT_SYMBOL(_writew);
70 EXPORT_SYMBOL(_writel);
71 EXPORT_SYMBOL(_memcpy_fromio);
72 EXPORT_SYMBOL(_memcpy_toio);
73 EXPORT_SYMBOL(_memset_c_io);
74 EXPORT_SYMBOL(insb);
75 EXPORT_SYMBOL(insw);
76 EXPORT_SYMBOL(insl);
77 EXPORT_SYMBOL(outsb);
78 EXPORT_SYMBOL(outsw);
79 EXPORT_SYMBOL(outsl);
80 EXPORT_SYMBOL(strcat);
81 EXPORT_SYMBOL(strcmp);
82 EXPORT_SYMBOL(strcpy);
83 EXPORT_SYMBOL(strlen);
84 EXPORT_SYMBOL(strncmp);
85 EXPORT_SYMBOL(strncpy);
86 EXPORT_SYMBOL(strnlen);
87 EXPORT_SYMBOL(strncat);
88 EXPORT_SYMBOL(strstr);
89 EXPORT_SYMBOL(strtok);
90 EXPORT_SYMBOL(strpbrk);
91 EXPORT_SYMBOL(strchr);
92 EXPORT_SYMBOL(strrchr);
93 EXPORT_SYMBOL(memcmp);
94 EXPORT_SYMBOL(memmove);
95 EXPORT_SYMBOL(__memcpy);
96 EXPORT_SYMBOL(__memset);
97 EXPORT_SYMBOL(__memsetw);
98 EXPORT_SYMBOL(__constant_c_memset);
100 EXPORT_SYMBOL(dump_thread);
101 EXPORT_SYMBOL(dump_fpu);
102 EXPORT_SYMBOL(hwrpb);
103 EXPORT_SYMBOL(wrusp);
104 EXPORT_SYMBOL(start_thread);
105 EXPORT_SYMBOL(alpha_read_fp_reg);
106 EXPORT_SYMBOL(alpha_write_fp_reg);
108 /* In-kernel system calls. */
109 EXPORT_SYMBOL(kernel_thread);
110 EXPORT_SYMBOL(sys_open);
111 EXPORT_SYMBOL(sys_dup);
112 EXPORT_SYMBOL(sys_exit);
113 EXPORT_SYMBOL(sys_write);
114 EXPORT_SYMBOL(sys_read);
115 EXPORT_SYMBOL(sys_lseek);
116 EXPORT_SYMBOL(__kernel_execve);
117 EXPORT_SYMBOL(sys_setsid);
118 EXPORT_SYMBOL(sys_sync);
119 EXPORT_SYMBOL(sys_wait4);
121 /* Networking helper routines. */
122 EXPORT_SYMBOL(csum_tcpudp_magic);
123 EXPORT_SYMBOL(ip_compute_csum);
124 EXPORT_SYMBOL(ip_fast_csum);
125 EXPORT_SYMBOL(csum_partial_copy);
126 EXPORT_SYMBOL(csum_partial_copy_from_user);
127 EXPORT_SYMBOL(csum_ipv6_magic);
129 #ifdef CONFIG_MATHEMU_MODULE
130 extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long);
131 extern long (*alpha_fp_emul) (unsigned long pc);
132 EXPORT_SYMBOL(alpha_fp_emul_imprecise);
133 EXPORT_SYMBOL(alpha_fp_emul);
134 #endif
137 * The following are specially called from the uaccess assembly stubs.
139 EXPORT_SYMBOL_NOVERS(__copy_user);
140 EXPORT_SYMBOL_NOVERS(__do_clear_user);
141 EXPORT_SYMBOL(__strncpy_from_user);
142 EXPORT_SYMBOL(__strnlen_user);
145 * The following are specially called from the semaphore assembly stubs.
147 EXPORT_SYMBOL_NOVERS(__down_failed);
148 EXPORT_SYMBOL_NOVERS(__down_failed_interruptible);
149 EXPORT_SYMBOL_NOVERS(__up_wakeup);
152 * This is called specially from __delay.
154 EXPORT_SYMBOL_NOVERS(___delay);
157 * SMP-specific symbols.
160 #ifdef __SMP__
161 EXPORT_SYMBOL(synchronize_irq);
162 EXPORT_SYMBOL(flush_tlb_all);
163 EXPORT_SYMBOL(flush_tlb_mm);
164 EXPORT_SYMBOL(flush_tlb_page);
165 EXPORT_SYMBOL(flush_tlb_range);
166 EXPORT_SYMBOL(cpu_data);
167 EXPORT_SYMBOL(cpu_number_map);
168 EXPORT_SYMBOL(global_bh_lock);
169 EXPORT_SYMBOL(global_bh_count);
170 EXPORT_SYMBOL(synchronize_bh);
171 EXPORT_SYMBOL(global_irq_holder);
172 EXPORT_SYMBOL(__global_cli);
173 EXPORT_SYMBOL(__global_sti);
174 EXPORT_SYMBOL(__global_save_flags);
175 EXPORT_SYMBOL(__global_restore_flags);
176 #if DEBUG_SPINLOCK
177 EXPORT_SYMBOL(spin_unlock);
178 EXPORT_SYMBOL(debug_spin_lock);
179 EXPORT_SYMBOL(debug_spin_trylock);
180 #endif
181 #if DEBUG_RWLOCK
182 EXPORT_SYMBOL(write_lock);
183 EXPORT_SYMBOL(read_lock);
184 #endif
185 #else /* __SMP__ */
186 EXPORT_SYMBOL(__local_bh_count);
187 EXPORT_SYMBOL(__local_irq_count);
188 #endif /* __SMP__ */
191 * The following are special because they're not called
192 * explicitly (the C compiler or assembler generates them in
193 * response to division operations). Fortunately, their
194 * interface isn't gonna change any time soon now, so it's OK
195 * to leave it out of version control.
197 # undef memcpy
198 # undef memset
199 EXPORT_SYMBOL_NOVERS(__divl);
200 EXPORT_SYMBOL_NOVERS(__divlu);
201 EXPORT_SYMBOL_NOVERS(__divq);
202 EXPORT_SYMBOL_NOVERS(__divqu);
203 EXPORT_SYMBOL_NOVERS(__reml);
204 EXPORT_SYMBOL_NOVERS(__remlu);
205 EXPORT_SYMBOL_NOVERS(__remq);
206 EXPORT_SYMBOL_NOVERS(__remqu);
207 EXPORT_SYMBOL_NOVERS(memcpy);
208 EXPORT_SYMBOL_NOVERS(memset);