blob: 6e58e97fcd39bb09581d39030a38940cc9a4f848 [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);
25extern long __strnlen_user_nocheck_asm(const char *s);
26extern long __strnlen_user_asm(const char *s);
27
28/*
29 * String functions
30 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070031EXPORT_SYMBOL(memset);
32EXPORT_SYMBOL(memcpy);
33EXPORT_SYMBOL(memmove);
Linus Torvalds1da177e2005-04-16 15:20:36 -070034
Linus Torvalds1da177e2005-04-16 15:20:36 -070035/*
Steven J. Hillc0226302012-07-06 21:56:01 +020036 * Functions that operate on entire pages. Mostly used by memory management.
37 */
38EXPORT_SYMBOL(clear_page);
39EXPORT_SYMBOL(copy_page);
40
41/*
Linus Torvalds1da177e2005-04-16 15:20:36 -070042 * Userspace access stuff.
43 */
44EXPORT_SYMBOL(__copy_user);
Ralf Baechled0c91ae2007-03-05 15:54:20 +000045EXPORT_SYMBOL(__copy_user_inatomic);
Linus Torvalds1da177e2005-04-16 15:20:36 -070046EXPORT_SYMBOL(__bzero);
47EXPORT_SYMBOL(__strncpy_from_user_nocheck_asm);
48EXPORT_SYMBOL(__strncpy_from_user_asm);
49EXPORT_SYMBOL(__strlen_user_nocheck_asm);
50EXPORT_SYMBOL(__strlen_user_asm);
51EXPORT_SYMBOL(__strnlen_user_nocheck_asm);
52EXPORT_SYMBOL(__strnlen_user_asm);
53
54EXPORT_SYMBOL(csum_partial);
Atsushi Nemotof860c902006-12-13 01:22:06 +090055EXPORT_SYMBOL(csum_partial_copy_nocheck);
56EXPORT_SYMBOL(__csum_partial_copy_user);
Linus Torvalds1da177e2005-04-16 15:20:36 -070057
58EXPORT_SYMBOL(invalid_pte_table);
Wu Zhangjind2bb07622009-11-20 20:34:29 +080059#ifdef CONFIG_FUNCTION_TRACER
60/* _mcount is defined in arch/mips/kernel/mcount.S */
61EXPORT_SYMBOL(_mcount);
62#endif