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/module.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 20#include <asm/checksum.h> 21#include <asm/system.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); 39 40extern void __aeabi_idiv(void); 41extern void __aeabi_idivmod(void); 42extern void __aeabi_lasr(void); 43extern void __aeabi_llsl(void); 44extern void __aeabi_llsr(void); 45extern void __aeabi_lmul(void); 46extern void __aeabi_uidiv(void); 47extern void __aeabi_uidivmod(void); 48extern void __aeabi_ulcmp(void); 49 50extern void fpundefinstr(void); 51extern void fp_enter(void); 52 53/* 54 * This has a special calling convention; it doesn't 55 * modify any of the usual registers, except for LR. 56 */ 57#define EXPORT_CRC_ALIAS(sym) __CRC_SYMBOL(sym, "") 58 59#define EXPORT_SYMBOL_ALIAS(sym,orig) \ 60 EXPORT_CRC_ALIAS(sym) \ 61 static const struct kernel_symbol __ksymtab_##sym \ 62 __used __attribute__((section("__ksymtab"))) = \ 63 { (unsigned long)&orig, #sym }; 64 65/* 66 * floating point math emulator support. 67 * These symbols will never change their calling convention... 68 */ 69EXPORT_SYMBOL_ALIAS(kern_fp_enter,fp_enter); 70EXPORT_SYMBOL_ALIAS(fp_printk,printk); 71EXPORT_SYMBOL_ALIAS(fp_send_sig,send_sig); 72 73EXPORT_SYMBOL(__backtrace); 74 75 /* platform dependent support */ 76EXPORT_SYMBOL(__udelay); 77EXPORT_SYMBOL(__const_udelay); 78 79 /* networking */ 80EXPORT_SYMBOL(csum_partial); 81EXPORT_SYMBOL(csum_partial_copy_from_user); 82EXPORT_SYMBOL(csum_partial_copy_nocheck); 83EXPORT_SYMBOL(__csum_ipv6_magic); 84 85 /* io */ 86#ifndef __raw_readsb 87EXPORT_SYMBOL(__raw_readsb); 88#endif 89#ifndef __raw_readsw 90EXPORT_SYMBOL(__raw_readsw); 91#endif 92#ifndef __raw_readsl 93EXPORT_SYMBOL(__raw_readsl); 94#endif 95#ifndef __raw_writesb 96EXPORT_SYMBOL(__raw_writesb); 97#endif 98#ifndef __raw_writesw 99EXPORT_SYMBOL(__raw_writesw); 100#endif 101#ifndef __raw_writesl 102EXPORT_SYMBOL(__raw_writesl); 103#endif 104 105 /* string / mem functions */ 106EXPORT_SYMBOL(strchr); 107EXPORT_SYMBOL(strrchr); 108EXPORT_SYMBOL(memset); 109EXPORT_SYMBOL(memcpy); 110EXPORT_SYMBOL(memmove); 111EXPORT_SYMBOL(memchr); 112EXPORT_SYMBOL(__memzero); 113 114 /* user mem (segment) */ 115EXPORT_SYMBOL(__strnlen_user); 116EXPORT_SYMBOL(__strncpy_from_user); 117 118#ifdef CONFIG_MMU 119EXPORT_SYMBOL(copy_page); 120 121EXPORT_SYMBOL(__copy_from_user); 122EXPORT_SYMBOL(__copy_to_user); 123EXPORT_SYMBOL(__clear_user); 124 125EXPORT_SYMBOL(__get_user_1); 126EXPORT_SYMBOL(__get_user_2); 127EXPORT_SYMBOL(__get_user_4); 128 129EXPORT_SYMBOL(__put_user_1); 130EXPORT_SYMBOL(__put_user_2); 131EXPORT_SYMBOL(__put_user_4); 132EXPORT_SYMBOL(__put_user_8); 133#endif 134 135 /* crypto hash */ 136EXPORT_SYMBOL(sha_transform); 137 138 /* gcc lib functions */ 139EXPORT_SYMBOL(__ashldi3); 140EXPORT_SYMBOL(__ashrdi3); 141EXPORT_SYMBOL(__divsi3); 142EXPORT_SYMBOL(__lshrdi3); 143EXPORT_SYMBOL(__modsi3); 144EXPORT_SYMBOL(__muldi3); 145EXPORT_SYMBOL(__ucmpdi2); 146EXPORT_SYMBOL(__udivsi3); 147EXPORT_SYMBOL(__umodsi3); 148EXPORT_SYMBOL(__do_div64); 149 150#ifdef CONFIG_AEABI 151EXPORT_SYMBOL(__aeabi_idiv); 152EXPORT_SYMBOL(__aeabi_idivmod); 153EXPORT_SYMBOL(__aeabi_lasr); 154EXPORT_SYMBOL(__aeabi_llsl); 155EXPORT_SYMBOL(__aeabi_llsr); 156EXPORT_SYMBOL(__aeabi_lmul); 157EXPORT_SYMBOL(__aeabi_uidiv); 158EXPORT_SYMBOL(__aeabi_uidivmod); 159EXPORT_SYMBOL(__aeabi_ulcmp); 160#endif 161 162 /* bitops */ 163EXPORT_SYMBOL(_set_bit_le); 164EXPORT_SYMBOL(_test_and_set_bit_le); 165EXPORT_SYMBOL(_clear_bit_le); 166EXPORT_SYMBOL(_test_and_clear_bit_le); 167EXPORT_SYMBOL(_change_bit_le); 168EXPORT_SYMBOL(_test_and_change_bit_le); 169EXPORT_SYMBOL(_find_first_zero_bit_le); 170EXPORT_SYMBOL(_find_next_zero_bit_le); 171EXPORT_SYMBOL(_find_first_bit_le); 172EXPORT_SYMBOL(_find_next_bit_le); 173 174#ifdef __ARMEB__ 175EXPORT_SYMBOL(_set_bit_be); 176EXPORT_SYMBOL(_test_and_set_bit_be); 177EXPORT_SYMBOL(_clear_bit_be); 178EXPORT_SYMBOL(_test_and_clear_bit_be); 179EXPORT_SYMBOL(_change_bit_be); 180EXPORT_SYMBOL(_test_and_change_bit_be); 181EXPORT_SYMBOL(_find_first_zero_bit_be); 182EXPORT_SYMBOL(_find_next_zero_bit_be); 183EXPORT_SYMBOL(_find_first_bit_be); 184EXPORT_SYMBOL(_find_next_bit_be); 185#endif 186 187#ifdef CONFIG_FUNCTION_TRACER 188EXPORT_SYMBOL(mcount); 189EXPORT_SYMBOL(__gnu_mcount_nc); 190#endif 191