blob: a322db072c3ccc816ba6a17e039c5e3fc6080da2 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Export MIPS-specific functions needed for loadable modules.
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
Steven J. Hillc0226302012-07-06 21:56:01 +02008 * Copyright (C) 1996, 97, 98, 99, 2000, 01, 03, 04, 05, 12 by Ralf Baechle
Linus Torvalds1da177e2005-04-16 15:20:36 -07009 * Copyright (C) 1999, 2000, 01 Silicon Graphics, Inc.
10 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070011#include <linux/interrupt.h>
Paul Gortmaker73bc2562011-07-23 16:30:40 -040012#include <linux/export.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070013#include <asm/checksum.h>
Ralf Baechle970d0322012-10-18 13:54:15 +020014#include <linux/mm.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#include <asm/uaccess.h>
Wu Zhangjind2bb07622009-11-20 20:34:29 +080016#include <asm/ftrace.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
18extern void *__bzero(void *__s, size_t __count);
19extern long __strncpy_from_user_nocheck_asm(char *__to,
Ralf Baechle70342282013-01-22 12:59:30 +010020 const char *__from, long __len);
Linus Torvalds1da177e2005-04-16 15:20:36 -070021extern long __strncpy_from_user_asm(char *__to, const char *__from,
Ralf Baechle70342282013-01-22 12:59:30 +010022 long __len);
Linus Torvalds1da177e2005-04-16 15:20:36 -070023extern long __strlen_user_nocheck_asm(const char *s);
24extern long __strlen_user_asm(const char *s);
Markos Chandras4968db42013-12-09 15:28:10 +000025extern long __strnlen_kernel_nocheck_asm(const char *s);
26extern long __strnlen_kernel_asm(const char *s);
Linus Torvalds1da177e2005-04-16 15:20:36 -070027extern long __strnlen_user_nocheck_asm(const char *s);
28extern long __strnlen_user_asm(const char *s);
29
30/*
31 * String functions
32 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070033EXPORT_SYMBOL(memset);
34EXPORT_SYMBOL(memcpy);
35EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -070036
Linus Torvalds1da177e2005-04-16 15:20:36 -070037/*
Steven J. Hillc0226302012-07-06 21:56:01 +020038 * Functions that operate on entire pages. Mostly used by memory management.
39 */
40EXPORT_SYMBOL(clear_page);
41EXPORT_SYMBOL(copy_page);
42
43/*
Linus Torvalds1da177e2005-04-16 15:20:36 -070044 * Userspace access stuff.
45 */
46EXPORT_SYMBOL(__copy_user);
Ralf Baechled0c91ae2007-03-05 15:54:20 +000047EXPORT_SYMBOL(__copy_user_inatomic);
Linus Torvalds1da177e2005-04-16 15:20:36 -070048EXPORT_SYMBOL(__bzero);
49EXPORT_SYMBOL(__strncpy_from_user_nocheck_asm);
50EXPORT_SYMBOL(__strncpy_from_user_asm);
51EXPORT_SYMBOL(__strlen_user_nocheck_asm);
52EXPORT_SYMBOL(__strlen_user_asm);
Markos Chandras4968db42013-12-09 15:28:10 +000053EXPORT_SYMBOL(__strnlen_kernel_nocheck_asm);
54EXPORT_SYMBOL(__strnlen_kernel_asm);
Linus Torvalds1da177e2005-04-16 15:20:36 -070055EXPORT_SYMBOL(__strnlen_user_nocheck_asm);
56EXPORT_SYMBOL(__strnlen_user_asm);
57
58EXPORT_SYMBOL(csum_partial);
Atsushi Nemotof860c902006-12-13 01:22:06 +090059EXPORT_SYMBOL(csum_partial_copy_nocheck);
60EXPORT_SYMBOL(__csum_partial_copy_user);
Linus Torvalds1da177e2005-04-16 15:20:36 -070061
62EXPORT_SYMBOL(invalid_pte_table);
Wu Zhangjind2bb07622009-11-20 20:34:29 +080063#ifdef CONFIG_FUNCTION_TRACER
64/* _mcount is defined in arch/mips/kernel/mcount.S */
65EXPORT_SYMBOL(_mcount);
66#endif