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 <asm/uaccess.h>
23 #include <asm/checksum.h>
27 #include <asm/pgalloc.h>
28 #include <asm/ftrace.h>
29 #ifdef CONFIG_BLK_DEV_FD
30 #include <asm/floppy.h>
33 #include <net/checksum.h>
34 #endif /* CONFIG_NET */
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
);
47 EXPORT_SYMBOL(empty_zero_page
);
50 * gcc internal math functions
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);
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
);
78 void __xtensa_libgcc_window_spill(void)
82 EXPORT_SYMBOL(__xtensa_libgcc_window_spill
);
84 unsigned long __sync_fetch_and_and_4(unsigned long *p
, unsigned long v
)
88 EXPORT_SYMBOL(__sync_fetch_and_and_4
);
90 unsigned long __sync_fetch_and_or_4(unsigned long *p
, unsigned long v
)
94 EXPORT_SYMBOL(__sync_fetch_and_or_4
);
100 EXPORT_SYMBOL(csum_partial
);
101 EXPORT_SYMBOL(csum_partial_copy_generic
);
102 #endif /* CONFIG_NET */
105 * Architecture-specific symbols
107 EXPORT_SYMBOL(__xtensa_copy_user
);
113 #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
114 // FIXME EXPORT_SYMBOL(screen_info);
117 EXPORT_SYMBOL(outsb
);
118 EXPORT_SYMBOL(outsw
);
119 EXPORT_SYMBOL(outsl
);
124 extern long common_exception_return
;
125 extern long _spill_registers
;
126 EXPORT_SYMBOL(common_exception_return
);
127 EXPORT_SYMBOL(_spill_registers
);
129 #ifdef CONFIG_FUNCTION_TRACER
130 EXPORT_SYMBOL(_mcount
);