1/* 2 * linux/arch/alpha/kernel/alpha_ksyms.c 3 * 4 * Export the alpha-specific functions that are needed for loadable 5 * modules. 6 */ 7 8#include <linux/module.h> 9#include <asm/console.h> 10#include <asm/uaccess.h> 11#include <asm/checksum.h> 12#include <asm/fpu.h> 13#include <asm/machvec.h> 14 15#include <linux/syscalls.h> 16 17/* 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); 28EXPORT_SYMBOL(callback_getenv); 29EXPORT_SYMBOL(callback_setenv); 30EXPORT_SYMBOL(callback_save_env); 31 32/* platform dependent support */ 33EXPORT_SYMBOL(strcat); 34EXPORT_SYMBOL(strcpy); 35EXPORT_SYMBOL(strlen); 36EXPORT_SYMBOL(strncpy); 37EXPORT_SYMBOL(strncat); 38EXPORT_SYMBOL(strchr); 39EXPORT_SYMBOL(strrchr); 40EXPORT_SYMBOL(memmove); 41EXPORT_SYMBOL(__memcpy); 42EXPORT_SYMBOL(__memset); 43EXPORT_SYMBOL(___memset); 44EXPORT_SYMBOL(__memsetw); 45EXPORT_SYMBOL(__constant_c_memset); 46EXPORT_SYMBOL(copy_page); 47EXPORT_SYMBOL(clear_page); 48 49EXPORT_SYMBOL(alpha_read_fp_reg); 50EXPORT_SYMBOL(alpha_read_fp_reg_s); 51EXPORT_SYMBOL(alpha_write_fp_reg); 52EXPORT_SYMBOL(alpha_write_fp_reg_s); 53 54/* Networking helper routines. */ 55EXPORT_SYMBOL(csum_tcpudp_magic); 56EXPORT_SYMBOL(ip_compute_csum); 57EXPORT_SYMBOL(ip_fast_csum); 58EXPORT_SYMBOL(csum_partial_copy_nocheck); 59EXPORT_SYMBOL(csum_partial_copy_from_user); 60EXPORT_SYMBOL(csum_ipv6_magic); 61 62#ifdef CONFIG_MATHEMU_MODULE 63extern long (*alpha_fp_emul_imprecise)(struct pt_regs *, unsigned long); 64extern long (*alpha_fp_emul) (unsigned long pc); 65EXPORT_SYMBOL(alpha_fp_emul_imprecise); 66EXPORT_SYMBOL(alpha_fp_emul); 67#endif 68 69/* 70 * The following are specially called from the uaccess assembly stubs. 71 */ 72EXPORT_SYMBOL(__copy_user); 73EXPORT_SYMBOL(__do_clear_user); 74 75/* 76 * SMP-specific symbols. 77 */ 78 79#ifdef CONFIG_SMP 80EXPORT_SYMBOL(_atomic_dec_and_lock); 81#endif /* CONFIG_SMP */ 82 83/* 84 * The following are special because they're not called 85 * explicitly (the C compiler or assembler generates them in 86 * response to division operations). Fortunately, their 87 * interface isn't gonna change any time soon now, so it's OK 88 * to leave it out of version control. 89 */ 90# undef memcpy 91# undef memset 92EXPORT_SYMBOL(__divl); 93EXPORT_SYMBOL(__divlu); 94EXPORT_SYMBOL(__divq); 95EXPORT_SYMBOL(__divqu); 96EXPORT_SYMBOL(__reml); 97EXPORT_SYMBOL(__remlu); 98EXPORT_SYMBOL(__remq); 99EXPORT_SYMBOL(__remqu); 100EXPORT_SYMBOL(memcpy); 101EXPORT_SYMBOL(memset); 102EXPORT_SYMBOL(memchr); 103