PageRenderTime 26ms CodeModel.GetById 14ms app.highlight 8ms RepoModel.GetById 1ms app.codeStats 0ms

/arch/xtensa/kernel/xtensa_ksyms.c

http://github.com/mirrors/linux
C | 132 lines | 86 code | 17 blank | 29 comment | 1 complexity | 850878b9e84ff54bca37d65a87278047 MD5 | raw file
  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/pgalloc.h>
 29#include <asm/ftrace.h>
 30#ifdef CONFIG_BLK_DEV_FD
 31#include <asm/floppy.h>
 32#endif
 33#ifdef CONFIG_NET
 34#include <net/checksum.h>
 35#endif /* CONFIG_NET */
 36
 37
 38/*
 39 * String functions
 40 */
 41EXPORT_SYMBOL(memset);
 42EXPORT_SYMBOL(memcpy);
 43EXPORT_SYMBOL(memmove);
 44EXPORT_SYMBOL(__memset);
 45EXPORT_SYMBOL(__memcpy);
 46EXPORT_SYMBOL(__memmove);
 47#ifndef CONFIG_GENERIC_STRNCPY_FROM_USER
 48EXPORT_SYMBOL(__strncpy_user);
 49#endif
 50EXPORT_SYMBOL(clear_page);
 51EXPORT_SYMBOL(copy_page);
 52
 53EXPORT_SYMBOL(empty_zero_page);
 54
 55/*
 56 * gcc internal math functions
 57 */
 58extern long long __ashrdi3(long long, int);
 59extern long long __ashldi3(long long, int);
 60extern long long __lshrdi3(long long, int);
 61extern int __divsi3(int, int);
 62extern int __modsi3(int, int);
 63extern long long __muldi3(long long, long long);
 64extern int __mulsi3(int, int);
 65extern unsigned int __udivsi3(unsigned int, unsigned int);
 66extern unsigned int __umodsi3(unsigned int, unsigned int);
 67extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
 68extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
 69extern int __ucmpdi2(int, int);
 70
 71EXPORT_SYMBOL(__ashldi3);
 72EXPORT_SYMBOL(__ashrdi3);
 73EXPORT_SYMBOL(__lshrdi3);
 74EXPORT_SYMBOL(__divsi3);
 75EXPORT_SYMBOL(__modsi3);
 76EXPORT_SYMBOL(__muldi3);
 77EXPORT_SYMBOL(__mulsi3);
 78EXPORT_SYMBOL(__udivsi3);
 79EXPORT_SYMBOL(__umodsi3);
 80EXPORT_SYMBOL(__udivdi3);
 81EXPORT_SYMBOL(__umoddi3);
 82EXPORT_SYMBOL(__ucmpdi2);
 83
 84void __xtensa_libgcc_window_spill(void)
 85{
 86	BUG();
 87}
 88EXPORT_SYMBOL(__xtensa_libgcc_window_spill);
 89
 90unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v)
 91{
 92	BUG();
 93}
 94EXPORT_SYMBOL(__sync_fetch_and_and_4);
 95
 96unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v)
 97{
 98	BUG();
 99}
100EXPORT_SYMBOL(__sync_fetch_and_or_4);
101
102/*
103 * Networking support
104 */
105EXPORT_SYMBOL(csum_partial);
106EXPORT_SYMBOL(csum_partial_copy_generic);
107
108/*
109 * Architecture-specific symbols
110 */
111EXPORT_SYMBOL(__xtensa_copy_user);
112EXPORT_SYMBOL(__invalidate_icache_range);
113
114/*
115 * Kernel hacking ...
116 */
117
118#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
119// FIXME EXPORT_SYMBOL(screen_info);
120#endif
121
122extern long common_exception_return;
123EXPORT_SYMBOL(common_exception_return);
124
125#ifdef CONFIG_FUNCTION_TRACER
126EXPORT_SYMBOL(_mcount);
127#endif
128
129EXPORT_SYMBOL(__invalidate_dcache_range);
130#if XCHAL_DCACHE_IS_WRITEBACK
131EXPORT_SYMBOL(__flush_dcache_range);
132#endif