18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * arch/xtensa/kernel/xtensa_ksyms.c 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * Export Xtensa-specific functions for loadable modules. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci * This file is subject to the terms and conditions of the GNU General Public 78c2ecf20Sopenharmony_ci * License. See the file "COPYING" in the main directory of this archive 88c2ecf20Sopenharmony_ci * for more details. 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * Copyright (C) 2001 - 2005 Tensilica Inc. 118c2ecf20Sopenharmony_ci * 128c2ecf20Sopenharmony_ci * Joe Taylor <joe@tensilica.com> 138c2ecf20Sopenharmony_ci */ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#include <linux/module.h> 168c2ecf20Sopenharmony_ci#include <linux/string.h> 178c2ecf20Sopenharmony_ci#include <linux/mm.h> 188c2ecf20Sopenharmony_ci#include <linux/interrupt.h> 198c2ecf20Sopenharmony_ci#include <asm/irq.h> 208c2ecf20Sopenharmony_ci#include <linux/in6.h> 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#include <linux/uaccess.h> 238c2ecf20Sopenharmony_ci#include <asm/cacheflush.h> 248c2ecf20Sopenharmony_ci#include <asm/checksum.h> 258c2ecf20Sopenharmony_ci#include <asm/dma.h> 268c2ecf20Sopenharmony_ci#include <asm/io.h> 278c2ecf20Sopenharmony_ci#include <asm/page.h> 288c2ecf20Sopenharmony_ci#include <asm/ftrace.h> 298c2ecf20Sopenharmony_ci#ifdef CONFIG_BLK_DEV_FD 308c2ecf20Sopenharmony_ci#include <asm/floppy.h> 318c2ecf20Sopenharmony_ci#endif 328c2ecf20Sopenharmony_ci#ifdef CONFIG_NET 338c2ecf20Sopenharmony_ci#include <net/checksum.h> 348c2ecf20Sopenharmony_ci#endif /* CONFIG_NET */ 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci/* 388c2ecf20Sopenharmony_ci * String functions 398c2ecf20Sopenharmony_ci */ 408c2ecf20Sopenharmony_ciEXPORT_SYMBOL(memset); 418c2ecf20Sopenharmony_ciEXPORT_SYMBOL(memcpy); 428c2ecf20Sopenharmony_ciEXPORT_SYMBOL(memmove); 438c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__memset); 448c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__memcpy); 458c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__memmove); 468c2ecf20Sopenharmony_ci#ifndef CONFIG_GENERIC_STRNCPY_FROM_USER 478c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__strncpy_user); 488c2ecf20Sopenharmony_ci#endif 498c2ecf20Sopenharmony_ciEXPORT_SYMBOL(clear_page); 508c2ecf20Sopenharmony_ciEXPORT_SYMBOL(copy_page); 518c2ecf20Sopenharmony_ci 528c2ecf20Sopenharmony_ciEXPORT_SYMBOL(empty_zero_page); 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ci/* 558c2ecf20Sopenharmony_ci * gcc internal math functions 568c2ecf20Sopenharmony_ci */ 578c2ecf20Sopenharmony_ciextern long long __ashrdi3(long long, int); 588c2ecf20Sopenharmony_ciextern long long __ashldi3(long long, int); 598c2ecf20Sopenharmony_ciextern long long __lshrdi3(long long, int); 608c2ecf20Sopenharmony_ciextern int __divsi3(int, int); 618c2ecf20Sopenharmony_ciextern int __modsi3(int, int); 628c2ecf20Sopenharmony_ciextern long long __muldi3(long long, long long); 638c2ecf20Sopenharmony_ciextern int __mulsi3(int, int); 648c2ecf20Sopenharmony_ciextern unsigned int __udivsi3(unsigned int, unsigned int); 658c2ecf20Sopenharmony_ciextern unsigned int __umodsi3(unsigned int, unsigned int); 668c2ecf20Sopenharmony_ciextern unsigned long long __umoddi3(unsigned long long, unsigned long long); 678c2ecf20Sopenharmony_ciextern unsigned long long __udivdi3(unsigned long long, unsigned long long); 688c2ecf20Sopenharmony_ciextern int __ucmpdi2(int, int); 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__ashldi3); 718c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__ashrdi3); 728c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__lshrdi3); 738c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__divsi3); 748c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__modsi3); 758c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__muldi3); 768c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__mulsi3); 778c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__udivsi3); 788c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__umodsi3); 798c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__udivdi3); 808c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__umoddi3); 818c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__ucmpdi2); 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_civoid __xtensa_libgcc_window_spill(void) 848c2ecf20Sopenharmony_ci{ 858c2ecf20Sopenharmony_ci BUG(); 868c2ecf20Sopenharmony_ci} 878c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__xtensa_libgcc_window_spill); 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ciunsigned int __sync_fetch_and_and_4(volatile void *p, unsigned int v) 908c2ecf20Sopenharmony_ci{ 918c2ecf20Sopenharmony_ci BUG(); 928c2ecf20Sopenharmony_ci} 938c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__sync_fetch_and_and_4); 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ciunsigned int __sync_fetch_and_or_4(volatile void *p, unsigned int v) 968c2ecf20Sopenharmony_ci{ 978c2ecf20Sopenharmony_ci BUG(); 988c2ecf20Sopenharmony_ci} 998c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__sync_fetch_and_or_4); 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci/* 1028c2ecf20Sopenharmony_ci * Networking support 1038c2ecf20Sopenharmony_ci */ 1048c2ecf20Sopenharmony_ciEXPORT_SYMBOL(csum_partial); 1058c2ecf20Sopenharmony_ciEXPORT_SYMBOL(csum_partial_copy_generic); 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci/* 1088c2ecf20Sopenharmony_ci * Architecture-specific symbols 1098c2ecf20Sopenharmony_ci */ 1108c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__xtensa_copy_user); 1118c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__invalidate_icache_range); 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci/* 1148c2ecf20Sopenharmony_ci * Kernel hacking ... 1158c2ecf20Sopenharmony_ci */ 1168c2ecf20Sopenharmony_ci 1178c2ecf20Sopenharmony_ci#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE) 1188c2ecf20Sopenharmony_ci// FIXME EXPORT_SYMBOL(screen_info); 1198c2ecf20Sopenharmony_ci#endif 1208c2ecf20Sopenharmony_ci 1218c2ecf20Sopenharmony_ciextern long common_exception_return; 1228c2ecf20Sopenharmony_ciEXPORT_SYMBOL(common_exception_return); 1238c2ecf20Sopenharmony_ci 1248c2ecf20Sopenharmony_ci#ifdef CONFIG_FUNCTION_TRACER 1258c2ecf20Sopenharmony_ciEXPORT_SYMBOL(_mcount); 1268c2ecf20Sopenharmony_ci#endif 1278c2ecf20Sopenharmony_ci 1288c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__invalidate_dcache_range); 1298c2ecf20Sopenharmony_ci#if XCHAL_DCACHE_IS_WRITEBACK 1308c2ecf20Sopenharmony_ciEXPORT_SYMBOL(__flush_dcache_range); 1318c2ecf20Sopenharmony_ci#endif 132