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