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/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(__memset); 44 EXPORT_SYMBOL(__memcpy); 45 EXPORT_SYMBOL(__memmove); 46 #ifndef CONFIG_GENERIC_STRNCPY_FROM_USER 47 EXPORT_SYMBOL(__strncpy_user); 48 #endif 49 EXPORT_SYMBOL(clear_page); 50 EXPORT_SYMBOL(copy_page); 51 52 EXPORT_SYMBOL(empty_zero_page); 53 54 /* 55 * gcc internal math functions 56 */ 57 extern long long __ashrdi3(long long, int); 58 extern long long __ashldi3(long long, int); 59 extern long long __lshrdi3(long long, int); 60 extern int __divsi3(int, int); 61 extern int __modsi3(int, int); 62 extern long long __muldi3(long long, long long); 63 extern int __mulsi3(int, int); 64 extern unsigned int __udivsi3(unsigned int, unsigned int); 65 extern unsigned int __umodsi3(unsigned int, unsigned int); 66 extern unsigned long long __umoddi3(unsigned long long, unsigned long long); 67 extern unsigned long long __udivdi3(unsigned long long, unsigned long long); 68 extern int __ucmpdi2(int, int); 69 70 EXPORT_SYMBOL(__ashldi3); 71 EXPORT_SYMBOL(__ashrdi3); 72 EXPORT_SYMBOL(__lshrdi3); 73 EXPORT_SYMBOL(__divsi3); 74 EXPORT_SYMBOL(__modsi3); 75 EXPORT_SYMBOL(__muldi3); 76 EXPORT_SYMBOL(__mulsi3); 77 EXPORT_SYMBOL(__udivsi3); 78 EXPORT_SYMBOL(__umodsi3); 79 EXPORT_SYMBOL(__udivdi3); 80 EXPORT_SYMBOL(__umoddi3); 81 EXPORT_SYMBOL(__ucmpdi2); 82 83 void __xtensa_libgcc_window_spill(void) 84 { 85 BUG(); 86 } 87 EXPORT_SYMBOL(__xtensa_libgcc_window_spill); 88 89 unsigned int __sync_fetch_and_and_4(volatile void *p, unsigned int v) 90 { 91 BUG(); 92 } 93 EXPORT_SYMBOL(__sync_fetch_and_and_4); 94 95 unsigned int __sync_fetch_and_or_4(volatile void *p, unsigned int v) 96 { 97 BUG(); 98 } 99 EXPORT_SYMBOL(__sync_fetch_and_or_4); 100 101 /* 102 * Networking support 103 */ 104 EXPORT_SYMBOL(csum_partial); 105 EXPORT_SYMBOL(csum_partial_copy_generic); 106 107 /* 108 * Architecture-specific symbols 109 */ 110 EXPORT_SYMBOL(__xtensa_copy_user); 111 EXPORT_SYMBOL(__invalidate_icache_range); 112 113 /* 114 * Kernel hacking ... 115 */ 116 117 #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE) 118 // FIXME EXPORT_SYMBOL(screen_info); 119 #endif 120 121 extern long common_exception_return; 122 EXPORT_SYMBOL(common_exception_return); 123 124 #ifdef CONFIG_FUNCTION_TRACER 125 EXPORT_SYMBOL(_mcount); 126 #endif 127 128 EXPORT_SYMBOL(__invalidate_dcache_range); 129 #if XCHAL_DCACHE_IS_WRITEBACK 130 EXPORT_SYMBOL(__flush_dcache_range); 131 #endif 132