Linux 3.11-rc3
[cris-mirror.git] / arch / xtensa / kernel / xtensa_ksyms.c
blobd8507f812f46ef6cb05425381ac54e323d028126
1 /*
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
8 * for more details.
10 * Copyright (C) 2001 - 2005 Tensilica Inc.
12 * Joe Taylor <joe@tensilica.com>
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>
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 */
37 * String functions
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);
46 EXPORT_SYMBOL(empty_zero_page);
49 * gcc internal math functions
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);
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);
77 void __xtensa_libgcc_window_spill(void)
79 BUG();
81 EXPORT_SYMBOL(__xtensa_libgcc_window_spill);
83 unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v)
85 BUG();
87 EXPORT_SYMBOL(__sync_fetch_and_and_4);
89 unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v)
91 BUG();
93 EXPORT_SYMBOL(__sync_fetch_and_or_4);
95 #ifdef CONFIG_NET
97 * Networking support
99 EXPORT_SYMBOL(csum_partial);
100 EXPORT_SYMBOL(csum_partial_copy_generic);
101 #endif /* CONFIG_NET */
104 * Architecture-specific symbols
106 EXPORT_SYMBOL(__xtensa_copy_user);
109 * Kernel hacking ...
112 #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
113 // FIXME EXPORT_SYMBOL(screen_info);
114 #endif
116 EXPORT_SYMBOL(outsb);
117 EXPORT_SYMBOL(outsw);
118 EXPORT_SYMBOL(outsl);
119 EXPORT_SYMBOL(insb);
120 EXPORT_SYMBOL(insw);
121 EXPORT_SYMBOL(insl);
123 extern long common_exception_return;
124 extern long _spill_registers;
125 EXPORT_SYMBOL(common_exception_return);
126 EXPORT_SYMBOL(_spill_registers);
128 #ifdef CONFIG_FUNCTION_TRACER
129 EXPORT_SYMBOL(_mcount);
130 #endif