2 * arch/xtensa/kernel/xtensa_ksyms.c
4 * Export Xtensa-specific functions for loadable modules.
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
10 * Copyright (C) 2001 - 2005 Tensilica Inc.
12 * Joe Taylor <joe@tensilica.com>
15 #include <linux/module.h>
16 #include <linux/string.h>
18 #include <linux/interrupt.h>
20 #include <linux/in6.h>
22 #include <linux/uaccess.h>
23 #include <asm/cacheflush.h>
24 #include <asm/checksum.h>
28 #include <asm/pgalloc.h>
29 #include <asm/ftrace.h>
30 #ifdef CONFIG_BLK_DEV_FD
31 #include <asm/floppy.h>
34 #include <net/checksum.h>
35 #endif /* CONFIG_NET */
41 EXPORT_SYMBOL(memset
);
42 EXPORT_SYMBOL(memcpy
);
43 EXPORT_SYMBOL(memmove
);
44 EXPORT_SYMBOL(__memset
);
45 EXPORT_SYMBOL(__memcpy
);
46 EXPORT_SYMBOL(__memmove
);
47 #ifndef CONFIG_GENERIC_STRNCPY_FROM_USER
48 EXPORT_SYMBOL(__strncpy_user
);
50 EXPORT_SYMBOL(clear_page
);
51 EXPORT_SYMBOL(copy_page
);
53 EXPORT_SYMBOL(empty_zero_page
);
56 * gcc internal math functions
58 extern long long __ashrdi3(long long, int);
59 extern long long __ashldi3(long long, int);
60 extern long long __lshrdi3(long long, int);
61 extern int __divsi3(int, int);
62 extern int __modsi3(int, int);
63 extern long long __muldi3(long long, long long);
64 extern int __mulsi3(int, int);
65 extern unsigned int __udivsi3(unsigned int, unsigned int);
66 extern unsigned int __umodsi3(unsigned int, unsigned int);
67 extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
68 extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
69 extern int __ucmpdi2(int, int);
71 EXPORT_SYMBOL(__ashldi3
);
72 EXPORT_SYMBOL(__ashrdi3
);
73 EXPORT_SYMBOL(__lshrdi3
);
74 EXPORT_SYMBOL(__divsi3
);
75 EXPORT_SYMBOL(__modsi3
);
76 EXPORT_SYMBOL(__muldi3
);
77 EXPORT_SYMBOL(__mulsi3
);
78 EXPORT_SYMBOL(__udivsi3
);
79 EXPORT_SYMBOL(__umodsi3
);
80 EXPORT_SYMBOL(__udivdi3
);
81 EXPORT_SYMBOL(__umoddi3
);
82 EXPORT_SYMBOL(__ucmpdi2
);
84 void __xtensa_libgcc_window_spill(void)
88 EXPORT_SYMBOL(__xtensa_libgcc_window_spill
);
90 unsigned long __sync_fetch_and_and_4(unsigned long *p
, unsigned long v
)
94 EXPORT_SYMBOL(__sync_fetch_and_and_4
);
96 unsigned long __sync_fetch_and_or_4(unsigned long *p
, unsigned long v
)
100 EXPORT_SYMBOL(__sync_fetch_and_or_4
);
105 EXPORT_SYMBOL(csum_partial
);
106 EXPORT_SYMBOL(csum_partial_copy_generic
);
109 * Architecture-specific symbols
111 EXPORT_SYMBOL(__xtensa_copy_user
);
112 EXPORT_SYMBOL(__invalidate_icache_range
);
118 #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
119 // FIXME EXPORT_SYMBOL(screen_info);
122 EXPORT_SYMBOL(outsb
);
123 EXPORT_SYMBOL(outsw
);
124 EXPORT_SYMBOL(outsl
);
129 extern long common_exception_return
;
130 EXPORT_SYMBOL(common_exception_return
);
132 #ifdef CONFIG_FUNCTION_TRACER
133 EXPORT_SYMBOL(_mcount
);
136 EXPORT_SYMBOL(__invalidate_dcache_range
);
137 #if XCHAL_DCACHE_IS_WRITEBACK
138 EXPORT_SYMBOL(__flush_dcache_range
);