linux/arch/arm/kernel/armksyms.c
<<
>>
Prefs
   1// SPDX-License-Identifier: GPL-2.0-only
   2/*
   3 *  linux/arch/arm/kernel/armksyms.c
   4 *
   5 *  Copyright (C) 2000 Russell King
   6 */
   7#include <linux/export.h>
   8#include <linux/sched.h>
   9#include <linux/string.h>
  10#include <linux/cryptohash.h>
  11#include <linux/delay.h>
  12#include <linux/in6.h>
  13#include <linux/syscalls.h>
  14#include <linux/uaccess.h>
  15#include <linux/io.h>
  16#include <linux/arm-smccc.h>
  17
  18#include <asm/checksum.h>
  19#include <asm/ftrace.h>
  20
  21/*
  22 * libgcc functions - functions that are used internally by the
  23 * compiler...  (prototypes are not correct though, but that
  24 * doesn't really matter since they're not versioned).
  25 */
  26extern void __ashldi3(void);
  27extern void __ashrdi3(void);
  28extern void __divsi3(void);
  29extern void __lshrdi3(void);
  30extern void __modsi3(void);
  31extern void __muldi3(void);
  32extern void __ucmpdi2(void);
  33extern void __udivsi3(void);
  34extern void __umodsi3(void);
  35extern void __do_div64(void);
  36extern void __bswapsi2(void);
  37extern void __bswapdi2(void);
  38
  39extern void __aeabi_idiv(void);
  40extern void __aeabi_idivmod(void);
  41extern void __aeabi_lasr(void);
  42extern void __aeabi_llsl(void);
  43extern void __aeabi_llsr(void);
  44extern void __aeabi_lmul(void);
  45extern void __aeabi_uidiv(void);
  46extern void __aeabi_uidivmod(void);
  47extern void __aeabi_ulcmp(void);
  48
  49extern void fpundefinstr(void);
  50
  51void mmioset(void *, unsigned int, size_t);
  52void mmiocpy(void *, const void *, size_t);
  53
  54        /* platform dependent support */
  55EXPORT_SYMBOL(arm_delay_ops);
  56
  57        /* networking */
  58EXPORT_SYMBOL(csum_partial);
  59EXPORT_SYMBOL(csum_partial_copy_from_user);
  60EXPORT_SYMBOL(csum_partial_copy_nocheck);
  61EXPORT_SYMBOL(__csum_ipv6_magic);
  62
  63        /* io */
  64#ifndef __raw_readsb
  65EXPORT_SYMBOL(__raw_readsb);
  66#endif
  67#ifndef __raw_readsw
  68EXPORT_SYMBOL(__raw_readsw);
  69#endif
  70#ifndef __raw_readsl
  71EXPORT_SYMBOL(__raw_readsl);
  72#endif
  73#ifndef __raw_writesb
  74EXPORT_SYMBOL(__raw_writesb);
  75#endif
  76#ifndef __raw_writesw
  77EXPORT_SYMBOL(__raw_writesw);
  78#endif
  79#ifndef __raw_writesl
  80EXPORT_SYMBOL(__raw_writesl);
  81#endif
  82
  83        /* string / mem functions */
  84EXPORT_SYMBOL(strchr);
  85EXPORT_SYMBOL(strrchr);
  86EXPORT_SYMBOL(memset);
  87EXPORT_SYMBOL(__memset32);
  88EXPORT_SYMBOL(__memset64);
  89EXPORT_SYMBOL(memcpy);
  90EXPORT_SYMBOL(memmove);
  91EXPORT_SYMBOL(memchr);
  92
  93EXPORT_SYMBOL(mmioset);
  94EXPORT_SYMBOL(mmiocpy);
  95
  96#ifdef CONFIG_MMU
  97EXPORT_SYMBOL(copy_page);
  98
  99EXPORT_SYMBOL(arm_copy_from_user);
 100EXPORT_SYMBOL(arm_copy_to_user);
 101EXPORT_SYMBOL(arm_clear_user);
 102
 103EXPORT_SYMBOL(__get_user_1);
 104EXPORT_SYMBOL(__get_user_2);
 105EXPORT_SYMBOL(__get_user_4);
 106EXPORT_SYMBOL(__get_user_8);
 107
 108#ifdef __ARMEB__
 109EXPORT_SYMBOL(__get_user_64t_1);
 110EXPORT_SYMBOL(__get_user_64t_2);
 111EXPORT_SYMBOL(__get_user_64t_4);
 112EXPORT_SYMBOL(__get_user_32t_8);
 113#endif
 114
 115EXPORT_SYMBOL(__put_user_1);
 116EXPORT_SYMBOL(__put_user_2);
 117EXPORT_SYMBOL(__put_user_4);
 118EXPORT_SYMBOL(__put_user_8);
 119#endif
 120
 121        /* gcc lib functions */
 122EXPORT_SYMBOL(__ashldi3);
 123EXPORT_SYMBOL(__ashrdi3);
 124EXPORT_SYMBOL(__divsi3);
 125EXPORT_SYMBOL(__lshrdi3);
 126EXPORT_SYMBOL(__modsi3);
 127EXPORT_SYMBOL(__muldi3);
 128EXPORT_SYMBOL(__ucmpdi2);
 129EXPORT_SYMBOL(__udivsi3);
 130EXPORT_SYMBOL(__umodsi3);
 131EXPORT_SYMBOL(__do_div64);
 132EXPORT_SYMBOL(__bswapsi2);
 133EXPORT_SYMBOL(__bswapdi2);
 134
 135#ifdef CONFIG_AEABI
 136EXPORT_SYMBOL(__aeabi_idiv);
 137EXPORT_SYMBOL(__aeabi_idivmod);
 138EXPORT_SYMBOL(__aeabi_lasr);
 139EXPORT_SYMBOL(__aeabi_llsl);
 140EXPORT_SYMBOL(__aeabi_llsr);
 141EXPORT_SYMBOL(__aeabi_lmul);
 142EXPORT_SYMBOL(__aeabi_uidiv);
 143EXPORT_SYMBOL(__aeabi_uidivmod);
 144EXPORT_SYMBOL(__aeabi_ulcmp);
 145#endif
 146
 147        /* bitops */
 148EXPORT_SYMBOL(_set_bit);
 149EXPORT_SYMBOL(_test_and_set_bit);
 150EXPORT_SYMBOL(_clear_bit);
 151EXPORT_SYMBOL(_test_and_clear_bit);
 152EXPORT_SYMBOL(_change_bit);
 153EXPORT_SYMBOL(_test_and_change_bit);
 154EXPORT_SYMBOL(_find_first_zero_bit_le);
 155EXPORT_SYMBOL(_find_next_zero_bit_le);
 156EXPORT_SYMBOL(_find_first_bit_le);
 157EXPORT_SYMBOL(_find_next_bit_le);
 158
 159#ifdef __ARMEB__
 160EXPORT_SYMBOL(_find_first_zero_bit_be);
 161EXPORT_SYMBOL(_find_next_zero_bit_be);
 162EXPORT_SYMBOL(_find_first_bit_be);
 163EXPORT_SYMBOL(_find_next_bit_be);
 164#endif
 165
 166#ifdef CONFIG_FUNCTION_TRACER
 167EXPORT_SYMBOL(__gnu_mcount_nc);
 168#endif
 169
 170#ifdef CONFIG_ARM_PATCH_PHYS_VIRT
 171EXPORT_SYMBOL(__pv_phys_pfn_offset);
 172EXPORT_SYMBOL(__pv_offset);
 173#endif
 174
 175#ifdef CONFIG_HAVE_ARM_SMCCC
 176EXPORT_SYMBOL(__arm_smccc_smc);
 177EXPORT_SYMBOL(__arm_smccc_hvc);
 178#endif
 179