]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/xtensa/kernel/xtensa_ksyms.c
Merge tag 'char-misc-4.13-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregk...
[karo-tx-linux.git] / arch / xtensa / kernel / xtensa_ksyms.c
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 <linux/uaccess.h>
23 #include <asm/cacheflush.h>
24 #include <asm/checksum.h>
25 #include <asm/dma.h>
26 #include <asm/io.h>
27 #include <asm/page.h>
28 #include <asm/pgalloc.h>
29 #include <asm/ftrace.h>
30 #ifdef CONFIG_BLK_DEV_FD
31 #include <asm/floppy.h>
32 #endif
33 #ifdef CONFIG_NET
34 #include <net/checksum.h>
35 #endif /* CONFIG_NET */
36
37
38 /*
39  * String functions
40  */
41 EXPORT_SYMBOL(memset);
42 EXPORT_SYMBOL(memcpy);
43 EXPORT_SYMBOL(memmove);
44 EXPORT_SYMBOL(__strncpy_user);
45 EXPORT_SYMBOL(clear_page);
46 EXPORT_SYMBOL(copy_page);
47
48 EXPORT_SYMBOL(empty_zero_page);
49
50 /*
51  * gcc internal math functions
52  */
53 extern long long __ashrdi3(long long, int);
54 extern long long __ashldi3(long long, int);
55 extern long long __lshrdi3(long long, int);
56 extern int __divsi3(int, int);
57 extern int __modsi3(int, int);
58 extern long long __muldi3(long long, long long);
59 extern int __mulsi3(int, int);
60 extern unsigned int __udivsi3(unsigned int, unsigned int);
61 extern unsigned int __umodsi3(unsigned int, unsigned int);
62 extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
63 extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
64 extern int __ucmpdi2(int, int);
65
66 EXPORT_SYMBOL(__ashldi3);
67 EXPORT_SYMBOL(__ashrdi3);
68 EXPORT_SYMBOL(__lshrdi3);
69 EXPORT_SYMBOL(__divsi3);
70 EXPORT_SYMBOL(__modsi3);
71 EXPORT_SYMBOL(__muldi3);
72 EXPORT_SYMBOL(__mulsi3);
73 EXPORT_SYMBOL(__udivsi3);
74 EXPORT_SYMBOL(__umodsi3);
75 EXPORT_SYMBOL(__udivdi3);
76 EXPORT_SYMBOL(__umoddi3);
77 EXPORT_SYMBOL(__ucmpdi2);
78
79 void __xtensa_libgcc_window_spill(void)
80 {
81         BUG();
82 }
83 EXPORT_SYMBOL(__xtensa_libgcc_window_spill);
84
85 unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v)
86 {
87         BUG();
88 }
89 EXPORT_SYMBOL(__sync_fetch_and_and_4);
90
91 unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v)
92 {
93         BUG();
94 }
95 EXPORT_SYMBOL(__sync_fetch_and_or_4);
96
97 /*
98  * Networking support
99  */
100 EXPORT_SYMBOL(csum_partial);
101 EXPORT_SYMBOL(csum_partial_copy_generic);
102
103 /*
104  * Architecture-specific symbols
105  */
106 EXPORT_SYMBOL(__xtensa_copy_user);
107 EXPORT_SYMBOL(__invalidate_icache_range);
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
131 EXPORT_SYMBOL(__invalidate_dcache_range);
132 #if XCHAL_DCACHE_IS_WRITEBACK
133 EXPORT_SYMBOL(__flush_dcache_range);
134 #endif