2005-06-24 13:01:16 +08:00
|
|
|
/*
|
|
|
|
* arch/xtensa/kernel/xtensa_ksyms.c
|
|
|
|
*
|
|
|
|
* Export Xtensa-specific functions for loadable modules.
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001 - 2005 Tensilica Inc.
|
|
|
|
*
|
|
|
|
* Joe Taylor <joe@tensilica.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/string.h>
|
|
|
|
#include <linux/mm.h>
|
|
|
|
#include <linux/interrupt.h>
|
|
|
|
#include <asm/irq.h>
|
|
|
|
#include <linux/in6.h>
|
|
|
|
|
2016-12-25 03:46:01 +08:00
|
|
|
#include <linux/uaccess.h>
|
2014-03-22 01:05:16 +08:00
|
|
|
#include <asm/cacheflush.h>
|
2005-06-24 13:01:16 +08:00
|
|
|
#include <asm/checksum.h>
|
|
|
|
#include <asm/dma.h>
|
|
|
|
#include <asm/io.h>
|
|
|
|
#include <asm/page.h>
|
|
|
|
#include <asm/pgalloc.h>
|
2013-08-28 12:06:37 +08:00
|
|
|
#include <asm/ftrace.h>
|
2005-06-24 13:01:16 +08:00
|
|
|
#ifdef CONFIG_BLK_DEV_FD
|
|
|
|
#include <asm/floppy.h>
|
|
|
|
#endif
|
|
|
|
#ifdef CONFIG_NET
|
|
|
|
#include <net/checksum.h>
|
|
|
|
#endif /* CONFIG_NET */
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* String functions
|
|
|
|
*/
|
|
|
|
EXPORT_SYMBOL(memset);
|
|
|
|
EXPORT_SYMBOL(memcpy);
|
|
|
|
EXPORT_SYMBOL(memmove);
|
2017-12-04 05:28:52 +08:00
|
|
|
EXPORT_SYMBOL(__memset);
|
|
|
|
EXPORT_SYMBOL(__memcpy);
|
|
|
|
EXPORT_SYMBOL(__memmove);
|
2017-12-18 06:43:15 +08:00
|
|
|
#ifndef CONFIG_GENERIC_STRNCPY_FROM_USER
|
2012-09-17 09:44:56 +08:00
|
|
|
EXPORT_SYMBOL(__strncpy_user);
|
2017-12-18 06:43:15 +08:00
|
|
|
#endif
|
2012-09-17 09:44:56 +08:00
|
|
|
EXPORT_SYMBOL(clear_page);
|
|
|
|
EXPORT_SYMBOL(copy_page);
|
2005-06-24 13:01:16 +08:00
|
|
|
|
2012-09-17 09:44:56 +08:00
|
|
|
EXPORT_SYMBOL(empty_zero_page);
|
2005-06-24 13:01:16 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* gcc internal math functions
|
|
|
|
*/
|
|
|
|
extern long long __ashrdi3(long long, int);
|
|
|
|
extern long long __ashldi3(long long, int);
|
|
|
|
extern long long __lshrdi3(long long, int);
|
|
|
|
extern int __divsi3(int, int);
|
|
|
|
extern int __modsi3(int, int);
|
|
|
|
extern long long __muldi3(long long, long long);
|
|
|
|
extern int __mulsi3(int, int);
|
|
|
|
extern unsigned int __udivsi3(unsigned int, unsigned int);
|
|
|
|
extern unsigned int __umodsi3(unsigned int, unsigned int);
|
|
|
|
extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
|
|
|
|
extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
|
2012-09-17 09:44:56 +08:00
|
|
|
extern int __ucmpdi2(int, int);
|
2005-06-24 13:01:16 +08:00
|
|
|
|
|
|
|
EXPORT_SYMBOL(__ashldi3);
|
|
|
|
EXPORT_SYMBOL(__ashrdi3);
|
|
|
|
EXPORT_SYMBOL(__lshrdi3);
|
|
|
|
EXPORT_SYMBOL(__divsi3);
|
|
|
|
EXPORT_SYMBOL(__modsi3);
|
|
|
|
EXPORT_SYMBOL(__muldi3);
|
|
|
|
EXPORT_SYMBOL(__mulsi3);
|
|
|
|
EXPORT_SYMBOL(__udivsi3);
|
|
|
|
EXPORT_SYMBOL(__umodsi3);
|
|
|
|
EXPORT_SYMBOL(__udivdi3);
|
|
|
|
EXPORT_SYMBOL(__umoddi3);
|
2012-09-17 09:44:56 +08:00
|
|
|
EXPORT_SYMBOL(__ucmpdi2);
|
2012-09-17 09:44:57 +08:00
|
|
|
|
|
|
|
void __xtensa_libgcc_window_spill(void)
|
|
|
|
{
|
|
|
|
BUG();
|
|
|
|
}
|
2012-09-17 09:44:56 +08:00
|
|
|
EXPORT_SYMBOL(__xtensa_libgcc_window_spill);
|
2005-06-24 13:01:16 +08:00
|
|
|
|
2012-09-17 09:44:57 +08:00
|
|
|
unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v)
|
|
|
|
{
|
|
|
|
BUG();
|
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(__sync_fetch_and_and_4);
|
|
|
|
|
|
|
|
unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v)
|
|
|
|
{
|
|
|
|
BUG();
|
|
|
|
}
|
|
|
|
EXPORT_SYMBOL(__sync_fetch_and_or_4);
|
|
|
|
|
2005-06-24 13:01:16 +08:00
|
|
|
/*
|
|
|
|
* Networking support
|
|
|
|
*/
|
2012-09-17 09:44:56 +08:00
|
|
|
EXPORT_SYMBOL(csum_partial);
|
2005-06-24 13:01:16 +08:00
|
|
|
EXPORT_SYMBOL(csum_partial_copy_generic);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Architecture-specific symbols
|
|
|
|
*/
|
|
|
|
EXPORT_SYMBOL(__xtensa_copy_user);
|
2014-02-27 21:41:14 +08:00
|
|
|
EXPORT_SYMBOL(__invalidate_icache_range);
|
2005-06-24 13:01:16 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Kernel hacking ...
|
|
|
|
*/
|
|
|
|
|
|
|
|
#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
|
|
|
|
// FIXME EXPORT_SYMBOL(screen_info);
|
|
|
|
#endif
|
|
|
|
|
2013-02-25 23:01:33 +08:00
|
|
|
extern long common_exception_return;
|
|
|
|
EXPORT_SYMBOL(common_exception_return);
|
2013-05-24 11:02:25 +08:00
|
|
|
|
|
|
|
#ifdef CONFIG_FUNCTION_TRACER
|
|
|
|
EXPORT_SYMBOL(_mcount);
|
|
|
|
#endif
|
2014-03-22 01:05:16 +08:00
|
|
|
|
|
|
|
EXPORT_SYMBOL(__invalidate_dcache_range);
|
|
|
|
#if XCHAL_DCACHE_IS_WRITEBACK
|
|
|
|
EXPORT_SYMBOL(__flush_dcache_range);
|
|
|
|
#endif
|