1 /*
2  * arch/xtensa/kernel/xtensa_ksyms.c
3  *
4  * Export Xtensa-specific functions for loadable modules.
5  *
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
8  * for more details.
9  *
10  * Copyright (C) 2001 - 2005  Tensilica Inc.
11  *
12  * Joe Taylor <joe@tensilica.com>
13  */
14 
15 #include <linux/module.h>
16 #include <linux/string.h>
17 #include <linux/mm.h>
18 #include <linux/interrupt.h>
19 #include <asm/irq.h>
20 #include <linux/in6.h>
21 
22 #include <asm/uaccess.h>
23 #include <asm/checksum.h>
24 #include <asm/dma.h>
25 #include <asm/io.h>
26 #include <asm/page.h>
27 #include <asm/pgalloc.h>
28 #include <asm/ftrace.h>
29 #ifdef CONFIG_BLK_DEV_FD
30 #include <asm/floppy.h>
31 #endif
32 #ifdef CONFIG_NET
33 #include <net/checksum.h>
34 #endif /* CONFIG_NET */
35 
36 
37 /*
38  * String functions
39  */
40 EXPORT_SYMBOL(memset);
41 EXPORT_SYMBOL(memcpy);
42 EXPORT_SYMBOL(memmove);
43 EXPORT_SYMBOL(__strncpy_user);
44 EXPORT_SYMBOL(clear_page);
45 EXPORT_SYMBOL(copy_page);
46 
47 EXPORT_SYMBOL(empty_zero_page);
48 
49 /*
50  * gcc internal math functions
51  */
52 extern long long __ashrdi3(long long, int);
53 extern long long __ashldi3(long long, int);
54 extern long long __lshrdi3(long long, int);
55 extern int __divsi3(int, int);
56 extern int __modsi3(int, int);
57 extern long long __muldi3(long long, long long);
58 extern int __mulsi3(int, int);
59 extern unsigned int __udivsi3(unsigned int, unsigned int);
60 extern unsigned int __umodsi3(unsigned int, unsigned int);
61 extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
62 extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
63 extern int __ucmpdi2(int, int);
64 
65 EXPORT_SYMBOL(__ashldi3);
66 EXPORT_SYMBOL(__ashrdi3);
67 EXPORT_SYMBOL(__lshrdi3);
68 EXPORT_SYMBOL(__divsi3);
69 EXPORT_SYMBOL(__modsi3);
70 EXPORT_SYMBOL(__muldi3);
71 EXPORT_SYMBOL(__mulsi3);
72 EXPORT_SYMBOL(__udivsi3);
73 EXPORT_SYMBOL(__umodsi3);
74 EXPORT_SYMBOL(__udivdi3);
75 EXPORT_SYMBOL(__umoddi3);
76 EXPORT_SYMBOL(__ucmpdi2);
77 
78 void __xtensa_libgcc_window_spill(void)
79 {
80 	BUG();
81 }
82 EXPORT_SYMBOL(__xtensa_libgcc_window_spill);
83 
84 unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v)
85 {
86 	BUG();
87 }
88 EXPORT_SYMBOL(__sync_fetch_and_and_4);
89 
90 unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v)
91 {
92 	BUG();
93 }
94 EXPORT_SYMBOL(__sync_fetch_and_or_4);
95 
96 #ifdef CONFIG_NET
97 /*
98  * Networking support
99  */
100 EXPORT_SYMBOL(csum_partial);
101 EXPORT_SYMBOL(csum_partial_copy_generic);
102 #endif /* CONFIG_NET */
103 
104 /*
105  * Architecture-specific symbols
106  */
107 EXPORT_SYMBOL(__xtensa_copy_user);
108 
109 /*
110  * Kernel hacking ...
111  */
112 
113 #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
114 // FIXME EXPORT_SYMBOL(screen_info);
115 #endif
116 
117 EXPORT_SYMBOL(outsb);
118 EXPORT_SYMBOL(outsw);
119 EXPORT_SYMBOL(outsl);
120 EXPORT_SYMBOL(insb);
121 EXPORT_SYMBOL(insw);
122 EXPORT_SYMBOL(insl);
123 
124 extern long common_exception_return;
125 EXPORT_SYMBOL(common_exception_return);
126 
127 #ifdef CONFIG_FUNCTION_TRACER
128 EXPORT_SYMBOL(_mcount);
129 #endif
130