• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 #ifdef CONFIG_BLK_DEV_FD
29 #include <asm/floppy.h>
30 #endif
31 #ifdef CONFIG_NET
32 #include <net/checksum.h>
33 #endif /* CONFIG_NET */
34 
35 
36 /*
37  * String functions
38  */
39 EXPORT_SYMBOL(memset);
40 EXPORT_SYMBOL(memcpy);
41 EXPORT_SYMBOL(memmove);
42 EXPORT_SYMBOL(__strncpy_user);
43 EXPORT_SYMBOL(clear_page);
44 EXPORT_SYMBOL(copy_page);
45 
46 EXPORT_SYMBOL(empty_zero_page);
47 
48 /*
49  * gcc internal math functions
50  */
51 extern long long __ashrdi3(long long, int);
52 extern long long __ashldi3(long long, int);
53 extern long long __lshrdi3(long long, int);
54 extern int __divsi3(int, int);
55 extern int __modsi3(int, int);
56 extern long long __muldi3(long long, long long);
57 extern int __mulsi3(int, int);
58 extern unsigned int __udivsi3(unsigned int, unsigned int);
59 extern unsigned int __umodsi3(unsigned int, unsigned int);
60 extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
61 extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
62 extern int __ucmpdi2(int, int);
63 
64 EXPORT_SYMBOL(__ashldi3);
65 EXPORT_SYMBOL(__ashrdi3);
66 EXPORT_SYMBOL(__lshrdi3);
67 EXPORT_SYMBOL(__divsi3);
68 EXPORT_SYMBOL(__modsi3);
69 EXPORT_SYMBOL(__muldi3);
70 EXPORT_SYMBOL(__mulsi3);
71 EXPORT_SYMBOL(__udivsi3);
72 EXPORT_SYMBOL(__umodsi3);
73 EXPORT_SYMBOL(__udivdi3);
74 EXPORT_SYMBOL(__umoddi3);
75 EXPORT_SYMBOL(__ucmpdi2);
76 
__xtensa_libgcc_window_spill(void)77 void __xtensa_libgcc_window_spill(void)
78 {
79 	BUG();
80 }
81 EXPORT_SYMBOL(__xtensa_libgcc_window_spill);
82 
__sync_fetch_and_and_4(unsigned long * p,unsigned long v)83 unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v)
84 {
85 	BUG();
86 }
87 EXPORT_SYMBOL(__sync_fetch_and_and_4);
88 
__sync_fetch_and_or_4(unsigned long * p,unsigned long v)89 unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v)
90 {
91 	BUG();
92 }
93 EXPORT_SYMBOL(__sync_fetch_and_or_4);
94 
95 #ifdef CONFIG_NET
96 /*
97  * Networking support
98  */
99 EXPORT_SYMBOL(csum_partial);
100 EXPORT_SYMBOL(csum_partial_copy_generic);
101 #endif /* CONFIG_NET */
102 
103 /*
104  * Architecture-specific symbols
105  */
106 EXPORT_SYMBOL(__xtensa_copy_user);
107 
108 /*
109  * Kernel hacking ...
110  */
111 
112 #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
113 // FIXME EXPORT_SYMBOL(screen_info);
114 #endif
115 
116 EXPORT_SYMBOL(outsb);
117 EXPORT_SYMBOL(outsw);
118 EXPORT_SYMBOL(outsl);
119 EXPORT_SYMBOL(insb);
120 EXPORT_SYMBOL(insw);
121 EXPORT_SYMBOL(insl);
122 
123 extern long common_exception_return;
124 extern long _spill_registers;
125 EXPORT_SYMBOL(common_exception_return);
126 EXPORT_SYMBOL(_spill_registers);
127