Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 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 | |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 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> |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 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> |
Guenter Roeck | 8872366 | 2013-08-27 21:06:37 -0700 | [diff] [blame] | 28 | #include <asm/ftrace.h> |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 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 | */ |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 40 | EXPORT_SYMBOL(memset); |
| 41 | EXPORT_SYMBOL(memcpy); |
| 42 | EXPORT_SYMBOL(memmove); |
Max Filippov | d3738f4 | 2012-09-17 05:44:56 +0400 | [diff] [blame] | 43 | EXPORT_SYMBOL(__strncpy_user); |
| 44 | EXPORT_SYMBOL(clear_page); |
| 45 | EXPORT_SYMBOL(copy_page); |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 46 | |
Max Filippov | d3738f4 | 2012-09-17 05:44:56 +0400 | [diff] [blame] | 47 | EXPORT_SYMBOL(empty_zero_page); |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 48 | |
| 49 | /* |
| 50 | * gcc internal math functions |
| 51 | */ |
| 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); |
Max Filippov | d3738f4 | 2012-09-17 05:44:56 +0400 | [diff] [blame] | 63 | extern int __ucmpdi2(int, int); |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 64 | |
| 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); |
Max Filippov | d3738f4 | 2012-09-17 05:44:56 +0400 | [diff] [blame] | 76 | EXPORT_SYMBOL(__ucmpdi2); |
Max Filippov | 6907b45 | 2012-09-17 05:44:57 +0400 | [diff] [blame] | 77 | |
| 78 | void __xtensa_libgcc_window_spill(void) |
| 79 | { |
| 80 | BUG(); |
| 81 | } |
Max Filippov | d3738f4 | 2012-09-17 05:44:56 +0400 | [diff] [blame] | 82 | EXPORT_SYMBOL(__xtensa_libgcc_window_spill); |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 83 | |
Max Filippov | 6907b45 | 2012-09-17 05:44:57 +0400 | [diff] [blame] | 84 | unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v) |
| 85 | { |
| 86 | BUG(); |
| 87 | } |
| 88 | EXPORT_SYMBOL(__sync_fetch_and_and_4); |
| 89 | |
| 90 | unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v) |
| 91 | { |
| 92 | BUG(); |
| 93 | } |
| 94 | EXPORT_SYMBOL(__sync_fetch_and_or_4); |
| 95 | |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 96 | #ifdef CONFIG_NET |
| 97 | /* |
| 98 | * Networking support |
| 99 | */ |
Max Filippov | d3738f4 | 2012-09-17 05:44:56 +0400 | [diff] [blame] | 100 | EXPORT_SYMBOL(csum_partial); |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 101 | EXPORT_SYMBOL(csum_partial_copy_generic); |
| 102 | #endif /* CONFIG_NET */ |
| 103 | |
| 104 | /* |
| 105 | * Architecture-specific symbols |
| 106 | */ |
| 107 | EXPORT_SYMBOL(__xtensa_copy_user); |
| 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 | |
Chris Zankel | 5a0015d | 2005-06-23 22:01:16 -0700 | [diff] [blame] | 117 | EXPORT_SYMBOL(outsb); |
| 118 | EXPORT_SYMBOL(outsw); |
| 119 | EXPORT_SYMBOL(outsl); |
| 120 | EXPORT_SYMBOL(insb); |
| 121 | EXPORT_SYMBOL(insw); |
| 122 | EXPORT_SYMBOL(insl); |
Max Filippov | 74f5bf0 | 2013-02-25 19:01:33 +0400 | [diff] [blame] | 123 | |
| 124 | extern long common_exception_return; |
| 125 | extern long _spill_registers; |
| 126 | EXPORT_SYMBOL(common_exception_return); |
| 127 | EXPORT_SYMBOL(_spill_registers); |
Max Filippov | 478ba61 | 2013-05-24 07:02:25 +0400 | [diff] [blame] | 128 | |
| 129 | #ifdef CONFIG_FUNCTION_TRACER |
| 130 | EXPORT_SYMBOL(_mcount); |
| 131 | #endif |