1/* 2 * Architecture-specific kernel symbols 3 * 4 * Copyright (C) 2000-2001 Richard Hirst <rhirst with parisc-linux.org> 5 * Copyright (C) 2001 Dave Kennedy 6 * Copyright (C) 2001 Paul Bame <bame at parisc-linux.org> 7 * Copyright (C) 2001-2003 Grant Grundler <grundler with parisc-linux.org> 8 * Copyright (C) 2002-2003 Matthew Wilcox <willy at parisc-linux.org> 9 * Copyright (C) 2002 Randolph Chung <tausq at parisc-linux.org> 10 * Copyright (C) 2002-2007 Helge Deller <deller with parisc-linux.org> 11 * 12 * This program is free software; you can redistribute it and/or modify 13 * it under the terms of the GNU General Public License as published by 14 * the Free Software Foundation; either version 2 of the License, or 15 * (at your option) any later version. 16 * 17 * This program is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 * GNU General Public License for more details. 21 * 22 * You should have received a copy of the GNU General Public License 23 * along with this program; if not, write to the Free Software 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 */ 26 27#include <linux/module.h> 28#include <linux/kernel.h> 29#include <linux/syscalls.h> 30 31#include <linux/string.h> 32EXPORT_SYMBOL(memset); 33 34#include <asm/atomic.h> 35EXPORT_SYMBOL(__xchg8); 36EXPORT_SYMBOL(__xchg32); 37EXPORT_SYMBOL(__cmpxchg_u32); 38#ifdef CONFIG_SMP 39EXPORT_SYMBOL(__atomic_hash); 40#endif 41#ifdef CONFIG_64BIT 42EXPORT_SYMBOL(__xchg64); 43EXPORT_SYMBOL(__cmpxchg_u64); 44#endif 45 46#include <asm/uaccess.h> 47EXPORT_SYMBOL(lstrncpy_from_user); 48EXPORT_SYMBOL(lclear_user); 49EXPORT_SYMBOL(lstrnlen_user); 50 51/* Global fixups */ 52extern void fixup_get_user_skip_1(void); 53extern void fixup_get_user_skip_2(void); 54extern void fixup_put_user_skip_1(void); 55extern void fixup_put_user_skip_2(void); 56EXPORT_SYMBOL(fixup_get_user_skip_1); 57EXPORT_SYMBOL(fixup_get_user_skip_2); 58EXPORT_SYMBOL(fixup_put_user_skip_1); 59EXPORT_SYMBOL(fixup_put_user_skip_2); 60 61#ifndef CONFIG_64BIT 62/* Needed so insmod can set dp value */ 63extern int $global$; 64EXPORT_SYMBOL($global$); 65#endif 66 67#include <asm/io.h> 68EXPORT_SYMBOL(memcpy_toio); 69EXPORT_SYMBOL(memcpy_fromio); 70EXPORT_SYMBOL(memset_io); 71 72extern void $$divI(void); 73extern void $$divU(void); 74extern void $$remI(void); 75extern void $$remU(void); 76extern void $$mulI(void); 77extern void $$divU_3(void); 78extern void $$divU_5(void); 79extern void $$divU_6(void); 80extern void $$divU_9(void); 81extern void $$divU_10(void); 82extern void $$divU_12(void); 83extern void $$divU_7(void); 84extern void $$divU_14(void); 85extern void $$divU_15(void); 86extern void $$divI_3(void); 87extern void $$divI_5(void); 88extern void $$divI_6(void); 89extern void $$divI_7(void); 90extern void $$divI_9(void); 91extern void $$divI_10(void); 92extern void $$divI_12(void); 93extern void $$divI_14(void); 94extern void $$divI_15(void); 95 96EXPORT_SYMBOL($$divI); 97EXPORT_SYMBOL($$divU); 98EXPORT_SYMBOL($$remI); 99EXPORT_SYMBOL($$remU); 100EXPORT_SYMBOL($$mulI); 101EXPORT_SYMBOL($$divU_3); 102EXPORT_SYMBOL($$divU_5); 103EXPORT_SYMBOL($$divU_6); 104EXPORT_SYMBOL($$divU_9); 105EXPORT_SYMBOL($$divU_10); 106EXPORT_SYMBOL($$divU_12); 107EXPORT_SYMBOL($$divU_7); 108EXPORT_SYMBOL($$divU_14); 109EXPORT_SYMBOL($$divU_15); 110EXPORT_SYMBOL($$divI_3); 111EXPORT_SYMBOL($$divI_5); 112EXPORT_SYMBOL($$divI_6); 113EXPORT_SYMBOL($$divI_7); 114EXPORT_SYMBOL($$divI_9); 115EXPORT_SYMBOL($$divI_10); 116EXPORT_SYMBOL($$divI_12); 117EXPORT_SYMBOL($$divI_14); 118EXPORT_SYMBOL($$divI_15); 119 120extern void __ashrdi3(void); 121extern void __ashldi3(void); 122extern void __lshrdi3(void); 123extern void __muldi3(void); 124 125EXPORT_SYMBOL(__ashrdi3); 126EXPORT_SYMBOL(__ashldi3); 127EXPORT_SYMBOL(__lshrdi3); 128EXPORT_SYMBOL(__muldi3); 129 130asmlinkage void * __canonicalize_funcptr_for_compare(void *); 131EXPORT_SYMBOL(__canonicalize_funcptr_for_compare); 132 133#ifdef CONFIG_64BIT 134extern void __divdi3(void); 135extern void __udivdi3(void); 136extern void __umoddi3(void); 137extern void __moddi3(void); 138 139EXPORT_SYMBOL(__divdi3); 140EXPORT_SYMBOL(__udivdi3); 141EXPORT_SYMBOL(__umoddi3); 142EXPORT_SYMBOL(__moddi3); 143#endif 144 145#ifndef CONFIG_64BIT 146extern void $$dyncall(void); 147EXPORT_SYMBOL($$dyncall); 148#endif 149 150#ifdef CONFIG_DISCONTIGMEM 151#include <asm/mmzone.h> 152EXPORT_SYMBOL(node_data); 153EXPORT_SYMBOL(pfnnid_map); 154#endif 155 156#ifdef CONFIG_FUNCTION_TRACER 157extern void _mcount(void); 158EXPORT_SYMBOL(_mcount); 159#endif 160 161/* from pacache.S -- needed for copy_page */ 162EXPORT_SYMBOL(copy_user_page_asm); 163