arm64ksyms.c 2.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
/*
 * Based on arch/arm/kernel/armksyms.c
 *
 * Copyright (C) 2000 Russell King
 * Copyright (C) 2012 ARM Ltd.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#include <linux/export.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/cryptohash.h>
#include <linux/delay.h>
#include <linux/in6.h>
#include <linux/syscalls.h>
#include <linux/uaccess.h>
#include <linux/io.h>
29
#include <linux/arm-smccc.h>
30
#include <linux/kprobes.h>
31 32 33 34

#include <asm/checksum.h>

EXPORT_SYMBOL(copy_page);
35
EXPORT_SYMBOL(clear_page);
36

37
	/* user mem (segment) */
38 39
EXPORT_SYMBOL(__arch_copy_from_user);
EXPORT_SYMBOL(__arch_copy_to_user);
40 41
EXPORT_SYMBOL(__arch_clear_user);
EXPORT_SYMBOL(__arch_copy_in_user);
42 43 44

	/* physical memory */
EXPORT_SYMBOL(memstart_addr);
45 46

	/* string / mem functions */
47
#ifndef CONFIG_KASAN
48 49
EXPORT_SYMBOL(strchr);
EXPORT_SYMBOL(strrchr);
50 51
EXPORT_SYMBOL(strcmp);
EXPORT_SYMBOL(strncmp);
52 53
EXPORT_SYMBOL(strlen);
EXPORT_SYMBOL(strnlen);
54 55 56 57
EXPORT_SYMBOL(memcmp);
EXPORT_SYMBOL(memchr);
#endif

58 59 60
EXPORT_SYMBOL(memset);
EXPORT_SYMBOL(memcpy);
EXPORT_SYMBOL(memmove);
A
Andrey Ryabinin 已提交
61 62 63
EXPORT_SYMBOL(__memset);
EXPORT_SYMBOL(__memcpy);
EXPORT_SYMBOL(__memmove);
64 65 66 67 68 69 70 71

	/* atomic bitops */
EXPORT_SYMBOL(set_bit);
EXPORT_SYMBOL(test_and_set_bit);
EXPORT_SYMBOL(clear_bit);
EXPORT_SYMBOL(test_and_clear_bit);
EXPORT_SYMBOL(change_bit);
EXPORT_SYMBOL(test_and_change_bit);
A
AKASHI Takahiro 已提交
72 73 74

#ifdef CONFIG_FUNCTION_TRACER
EXPORT_SYMBOL(_mcount);
75
NOKPROBE_SYMBOL(_mcount);
A
AKASHI Takahiro 已提交
76
#endif
77 78

	/* arm-smccc */
79 80
EXPORT_SYMBOL(__arm_smccc_smc);
EXPORT_SYMBOL(__arm_smccc_hvc);
81 82 83 84 85 86 87 88

	/* tishift.S */
extern long long __ashlti3(long long a, int b);
EXPORT_SYMBOL(__ashlti3);
extern long long __ashrti3(long long a, int b);
EXPORT_SYMBOL(__ashrti3);
extern long long __lshrti3(long long a, int b);
EXPORT_SYMBOL(__lshrti3);