2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* Export MIPS-specific functions needed 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.
|
|
|
|
*
|
2012-07-07 03:56:01 +08:00
|
|
|
* Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05, 12 by Ralf Baechle
|
2005-04-17 06:20:36 +08:00
|
|
|
* Copyright (C) 1999, 2000, 01 Silicon Graphics, Inc.
|
|
|
|
*/
|
|
|
|
#include <linux/interrupt.h>
|
2011-07-24 04:30:40 +08:00
|
|
|
#include <linux/export.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
#include <asm/checksum.h>
|
2012-10-18 19:54:15 +08:00
|
|
|
#include <linux/mm.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
#include <asm/uaccess.h>
|
2009-11-20 20:34:29 +08:00
|
|
|
#include <asm/ftrace.h>
|
2015-02-10 18:02:59 +08:00
|
|
|
#include <asm/fpu.h>
|
2015-02-10 18:03:00 +08:00
|
|
|
#include <asm/msa.h>
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
extern void *__bzero(void *__s, size_t __count);
|
2014-01-03 00:40:20 +08:00
|
|
|
extern long __strncpy_from_kernel_nocheck_asm(char *__to,
|
|
|
|
const char *__from, long __len);
|
|
|
|
extern long __strncpy_from_kernel_asm(char *__to, const char *__from,
|
|
|
|
long __len);
|
2005-04-17 06:20:36 +08:00
|
|
|
extern long __strncpy_from_user_nocheck_asm(char *__to,
|
2013-01-22 19:59:30 +08:00
|
|
|
const char *__from, long __len);
|
2005-04-17 06:20:36 +08:00
|
|
|
extern long __strncpy_from_user_asm(char *__to, const char *__from,
|
2013-01-22 19:59:30 +08:00
|
|
|
long __len);
|
2014-01-03 00:04:38 +08:00
|
|
|
extern long __strlen_kernel_asm(const char *s);
|
2005-04-17 06:20:36 +08:00
|
|
|
extern long __strlen_user_asm(const char *s);
|
2013-12-09 23:28:10 +08:00
|
|
|
extern long __strnlen_kernel_nocheck_asm(const char *s);
|
|
|
|
extern long __strnlen_kernel_asm(const char *s);
|
2005-04-17 06:20:36 +08:00
|
|
|
extern long __strnlen_user_nocheck_asm(const char *s);
|
|
|
|
extern long __strnlen_user_asm(const char *s);
|
|
|
|
|
2015-02-10 18:02:59 +08:00
|
|
|
/*
|
|
|
|
* Core architecture code
|
|
|
|
*/
|
|
|
|
EXPORT_SYMBOL_GPL(_save_fp);
|
2015-02-10 18:03:00 +08:00
|
|
|
#ifdef CONFIG_CPU_HAS_MSA
|
|
|
|
EXPORT_SYMBOL_GPL(_save_msa);
|
|
|
|
#endif
|
2015-02-10 18:02:59 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* String functions
|
|
|
|
*/
|
|
|
|
EXPORT_SYMBOL(memset);
|
|
|
|
EXPORT_SYMBOL(memcpy);
|
|
|
|
EXPORT_SYMBOL(memmove);
|
|
|
|
|
2012-07-07 03:56:01 +08:00
|
|
|
/*
|
|
|
|
* Functions that operate on entire pages. Mostly used by memory management.
|
|
|
|
*/
|
|
|
|
EXPORT_SYMBOL(clear_page);
|
|
|
|
EXPORT_SYMBOL(copy_page);
|
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
/*
|
|
|
|
* Userspace access stuff.
|
|
|
|
*/
|
|
|
|
EXPORT_SYMBOL(__copy_user);
|
2007-03-05 23:54:20 +08:00
|
|
|
EXPORT_SYMBOL(__copy_user_inatomic);
|
2014-01-08 00:20:22 +08:00
|
|
|
#ifdef CONFIG_EVA
|
|
|
|
EXPORT_SYMBOL(__copy_from_user_eva);
|
|
|
|
EXPORT_SYMBOL(__copy_in_user_eva);
|
|
|
|
EXPORT_SYMBOL(__copy_to_user_eva);
|
|
|
|
EXPORT_SYMBOL(__copy_user_inatomic_eva);
|
|
|
|
#endif
|
2005-04-17 06:20:36 +08:00
|
|
|
EXPORT_SYMBOL(__bzero);
|
2014-01-03 00:40:20 +08:00
|
|
|
EXPORT_SYMBOL(__strncpy_from_kernel_nocheck_asm);
|
|
|
|
EXPORT_SYMBOL(__strncpy_from_kernel_asm);
|
2005-04-17 06:20:36 +08:00
|
|
|
EXPORT_SYMBOL(__strncpy_from_user_nocheck_asm);
|
|
|
|
EXPORT_SYMBOL(__strncpy_from_user_asm);
|
2014-01-03 00:04:38 +08:00
|
|
|
EXPORT_SYMBOL(__strlen_kernel_asm);
|
2005-04-17 06:20:36 +08:00
|
|
|
EXPORT_SYMBOL(__strlen_user_asm);
|
2013-12-09 23:28:10 +08:00
|
|
|
EXPORT_SYMBOL(__strnlen_kernel_nocheck_asm);
|
|
|
|
EXPORT_SYMBOL(__strnlen_kernel_asm);
|
2005-04-17 06:20:36 +08:00
|
|
|
EXPORT_SYMBOL(__strnlen_user_nocheck_asm);
|
|
|
|
EXPORT_SYMBOL(__strnlen_user_asm);
|
|
|
|
|
2014-11-13 19:25:27 +08:00
|
|
|
#ifndef CONFIG_CPU_MIPSR6
|
2005-04-17 06:20:36 +08:00
|
|
|
EXPORT_SYMBOL(csum_partial);
|
2006-12-13 00:22:06 +08:00
|
|
|
EXPORT_SYMBOL(csum_partial_copy_nocheck);
|
2013-12-13 00:21:00 +08:00
|
|
|
EXPORT_SYMBOL(__csum_partial_copy_kernel);
|
|
|
|
EXPORT_SYMBOL(__csum_partial_copy_to_user);
|
|
|
|
EXPORT_SYMBOL(__csum_partial_copy_from_user);
|
2014-11-13 19:25:27 +08:00
|
|
|
#endif
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
EXPORT_SYMBOL(invalid_pte_table);
|
2009-11-20 20:34:29 +08:00
|
|
|
#ifdef CONFIG_FUNCTION_TRACER
|
|
|
|
/* _mcount is defined in arch/mips/kernel/mcount.S */
|
|
|
|
EXPORT_SYMBOL(_mcount);
|
|
|
|
#endif
|