blob: 692809e4aecea1917c290ecc8c562a78e497e807 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Uwe Zeisbergerf30c2262006-10-03 23:01:26 +02002 * linux/arch/alpha/kernel/alpha_ksyms.c
Linus Torvalds1da177e2005-04-16 15:20:36 -07003 *
4 * Export the alpha-specific functions that are needed for loadable
5 * modules.
6 */
7
Linus Torvalds1da177e2005-04-16 15:20:36 -07008#include <linux/module.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07009#include <asm/console.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070010#include <asm/uaccess.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070011#include <asm/checksum.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#include <asm/fpu.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#include <asm/machvec.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#include <asm/unistd.h>
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017/* these are C runtime functions with special calling conventions: */
18extern void __divl (void);
19extern void __reml (void);
20extern void __divq (void);
21extern void __remq (void);
22extern void __divlu (void);
23extern void __remlu (void);
24extern void __divqu (void);
25extern void __remqu (void);
26
27EXPORT_SYMBOL(alpha_mv);
Linus Torvalds1da177e2005-04-16 15:20:36 -070028EXPORT_SYMBOL(callback_getenv);
29EXPORT_SYMBOL(callback_setenv);
30EXPORT_SYMBOL(callback_save_env);
Linus Torvalds1da177e2005-04-16 15:20:36 -070031
32/* platform dependent support */
33EXPORT_SYMBOL(strcat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070034EXPORT_SYMBOL(strcpy);
35EXPORT_SYMBOL(strlen);
Linus Torvalds1da177e2005-04-16 15:20:36 -070036EXPORT_SYMBOL(strncpy);
Linus Torvalds1da177e2005-04-16 15:20:36 -070037EXPORT_SYMBOL(strncat);
Linus Torvalds1da177e2005-04-16 15:20:36 -070038EXPORT_SYMBOL(strchr);
39EXPORT_SYMBOL(strrchr);
Linus Torvalds1da177e2005-04-16 15:20:36 -070040EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -070041EXPORT_SYMBOL(__memcpy);
42EXPORT_SYMBOL(__memset);
43EXPORT_SYMBOL(__memsetw);
44EXPORT_SYMBOL(__constant_c_memset);
45EXPORT_SYMBOL(copy_page);
46EXPORT_SYMBOL(clear_page);
47
Linus Torvalds1da177e2005-04-16 15:20:36 -070048EXPORT_SYMBOL(alpha_read_fp_reg);
49EXPORT_SYMBOL(alpha_read_fp_reg_s);
50EXPORT_SYMBOL(alpha_write_fp_reg);
51EXPORT_SYMBOL(alpha_write_fp_reg_s);
52
Al Virocff52da2006-10-11 17:40:22 +010053/* entry.S */
Linus Torvalds1da177e2005-04-16 15:20:36 -070054EXPORT_SYMBOL(kernel_thread);
Arnd Bergmann3db03b42006-10-02 02:18:31 -070055EXPORT_SYMBOL(kernel_execve);
Linus Torvalds1da177e2005-04-16 15:20:36 -070056
57/* Networking helper routines. */
58EXPORT_SYMBOL(csum_tcpudp_magic);
59EXPORT_SYMBOL(ip_compute_csum);
60EXPORT_SYMBOL(ip_fast_csum);
61EXPORT_SYMBOL(csum_partial_copy_nocheck);
62EXPORT_SYMBOL(csum_partial_copy_from_user);
63EXPORT_SYMBOL(csum_ipv6_magic);
64
65#ifdef CONFIG_MATHEMU_MODULE
66extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long);
67extern long (*alpha_fp_emul) (unsigned long pc);
68EXPORT_SYMBOL(alpha_fp_emul_imprecise);
69EXPORT_SYMBOL(alpha_fp_emul);
70#endif
71
Linus Torvalds1da177e2005-04-16 15:20:36 -070072/*
73 * The following are specially called from the uaccess assembly stubs.
74 */
75EXPORT_SYMBOL(__copy_user);
76EXPORT_SYMBOL(__do_clear_user);
77EXPORT_SYMBOL(__strncpy_from_user);
78EXPORT_SYMBOL(__strnlen_user);
79
80/* Semaphore helper functions. */
81EXPORT_SYMBOL(__down_failed);
82EXPORT_SYMBOL(__down_failed_interruptible);
83EXPORT_SYMBOL(__up_wakeup);
84EXPORT_SYMBOL(down);
85EXPORT_SYMBOL(down_interruptible);
86EXPORT_SYMBOL(down_trylock);
87EXPORT_SYMBOL(up);
88
89/*
90 * SMP-specific symbols.
91 */
92
93#ifdef CONFIG_SMP
Linus Torvalds1da177e2005-04-16 15:20:36 -070094EXPORT_SYMBOL(_atomic_dec_and_lock);
Linus Torvalds1da177e2005-04-16 15:20:36 -070095#endif /* CONFIG_SMP */
96
97/*
Linus Torvalds1da177e2005-04-16 15:20:36 -070098 * The following are special because they're not called
99 * explicitly (the C compiler or assembler generates them in
100 * response to division operations). Fortunately, their
101 * interface isn't gonna change any time soon now, so it's OK
102 * to leave it out of version control.
103 */
104# undef memcpy
105# undef memset
106EXPORT_SYMBOL(__divl);
107EXPORT_SYMBOL(__divlu);
108EXPORT_SYMBOL(__divq);
109EXPORT_SYMBOL(__divqu);
110EXPORT_SYMBOL(__reml);
111EXPORT_SYMBOL(__remlu);
112EXPORT_SYMBOL(__remq);
113EXPORT_SYMBOL(__remqu);
114EXPORT_SYMBOL(memcpy);
115EXPORT_SYMBOL(memset);
116EXPORT_SYMBOL(memchr);