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