11da177e4SLinus Torvalds /* 21da177e4SLinus Torvalds * Architecture-specific kernel symbols 31da177e4SLinus Torvalds * 41da177e4SLinus Torvalds * Copyright (C) 2000-2001 Richard Hirst <rhirst with parisc-linux.org> 51da177e4SLinus Torvalds * Copyright (C) 2001 Dave Kennedy 61da177e4SLinus Torvalds * Copyright (C) 2001 Paul Bame <bame at parisc-linux.org> 71da177e4SLinus Torvalds * Copyright (C) 2001-2003 Grant Grundler <grundler with parisc-linux.org> 81da177e4SLinus Torvalds * Copyright (C) 2002-2003 Matthew Wilcox <willy at parisc-linux.org> 91da177e4SLinus Torvalds * Copyright (C) 2002 Randolph Chung <tausq at parisc-linux.org> 10a8f44e38SHelge Deller * Copyright (C) 2002-2007 Helge Deller <deller with parisc-linux.org> 111da177e4SLinus Torvalds * 121da177e4SLinus Torvalds * This program is free software; you can redistribute it and/or modify 131da177e4SLinus Torvalds * it under the terms of the GNU General Public License as published by 141da177e4SLinus Torvalds * the Free Software Foundation; either version 2 of the License, or 151da177e4SLinus Torvalds * (at your option) any later version. 161da177e4SLinus Torvalds * 171da177e4SLinus Torvalds * This program is distributed in the hope that it will be useful, 181da177e4SLinus Torvalds * but WITHOUT ANY WARRANTY; without even the implied warranty of 191da177e4SLinus Torvalds * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 201da177e4SLinus Torvalds * GNU General Public License for more details. 211da177e4SLinus Torvalds * 221da177e4SLinus Torvalds * You should have received a copy of the GNU General Public License 231da177e4SLinus Torvalds * along with this program; if not, write to the Free Software 241da177e4SLinus Torvalds * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 251da177e4SLinus Torvalds */ 261da177e4SLinus Torvalds 271da177e4SLinus Torvalds #include <linux/module.h> 281da177e4SLinus Torvalds #include <linux/kernel.h> 291da177e4SLinus Torvalds #include <linux/syscalls.h> 301da177e4SLinus Torvalds 311da177e4SLinus Torvalds #include <linux/string.h> 321da177e4SLinus Torvalds EXPORT_SYMBOL(memset); 331da177e4SLinus Torvalds 3460063497SArun Sharma #include <linux/atomic.h> 351da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg8); 361da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg32); 371da177e4SLinus Torvalds EXPORT_SYMBOL(__cmpxchg_u32); 382aae008cSGuenter Roeck EXPORT_SYMBOL(__cmpxchg_u64); 391da177e4SLinus Torvalds #ifdef CONFIG_SMP 401da177e4SLinus Torvalds EXPORT_SYMBOL(__atomic_hash); 411da177e4SLinus Torvalds #endif 42a8f44e38SHelge Deller #ifdef CONFIG_64BIT 431da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg64); 441da177e4SLinus Torvalds #endif 451da177e4SLinus Torvalds 467c0f6ba6SLinus Torvalds #include <linux/uaccess.h> 471da177e4SLinus Torvalds EXPORT_SYMBOL(lclear_user); 481da177e4SLinus Torvalds EXPORT_SYMBOL(lstrnlen_user); 491da177e4SLinus Torvalds 50a8f44e38SHelge Deller #ifndef CONFIG_64BIT 511da177e4SLinus Torvalds /* Needed so insmod can set dp value */ 521da177e4SLinus Torvalds extern int $global$; 531da177e4SLinus Torvalds EXPORT_SYMBOL($global$); 541da177e4SLinus Torvalds #endif 551da177e4SLinus Torvalds 561da177e4SLinus Torvalds #include <asm/io.h> 571da177e4SLinus Torvalds EXPORT_SYMBOL(memcpy_toio); 581da177e4SLinus Torvalds EXPORT_SYMBOL(memcpy_fromio); 591da177e4SLinus Torvalds EXPORT_SYMBOL(memset_io); 601da177e4SLinus Torvalds 611da177e4SLinus Torvalds extern void $$divI(void); 621da177e4SLinus Torvalds extern void $$divU(void); 631da177e4SLinus Torvalds extern void $$remI(void); 641da177e4SLinus Torvalds extern void $$remU(void); 651da177e4SLinus Torvalds extern void $$mulI(void); 661da177e4SLinus Torvalds extern void $$divU_3(void); 671da177e4SLinus Torvalds extern void $$divU_5(void); 681da177e4SLinus Torvalds extern void $$divU_6(void); 691da177e4SLinus Torvalds extern void $$divU_9(void); 701da177e4SLinus Torvalds extern void $$divU_10(void); 711da177e4SLinus Torvalds extern void $$divU_12(void); 721da177e4SLinus Torvalds extern void $$divU_7(void); 731da177e4SLinus Torvalds extern void $$divU_14(void); 741da177e4SLinus Torvalds extern void $$divU_15(void); 751da177e4SLinus Torvalds extern void $$divI_3(void); 761da177e4SLinus Torvalds extern void $$divI_5(void); 771da177e4SLinus Torvalds extern void $$divI_6(void); 781da177e4SLinus Torvalds extern void $$divI_7(void); 791da177e4SLinus Torvalds extern void $$divI_9(void); 801da177e4SLinus Torvalds extern void $$divI_10(void); 811da177e4SLinus Torvalds extern void $$divI_12(void); 821da177e4SLinus Torvalds extern void $$divI_14(void); 831da177e4SLinus Torvalds extern void $$divI_15(void); 841da177e4SLinus Torvalds 851da177e4SLinus Torvalds EXPORT_SYMBOL($$divI); 861da177e4SLinus Torvalds EXPORT_SYMBOL($$divU); 871da177e4SLinus Torvalds EXPORT_SYMBOL($$remI); 881da177e4SLinus Torvalds EXPORT_SYMBOL($$remU); 891da177e4SLinus Torvalds EXPORT_SYMBOL($$mulI); 901da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_3); 911da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_5); 921da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_6); 931da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_9); 941da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_10); 951da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_12); 961da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_7); 971da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_14); 981da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_15); 991da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_3); 1001da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_5); 1011da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_6); 1021da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_7); 1031da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_9); 1041da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_10); 1051da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_12); 1061da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_14); 1071da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_15); 1081da177e4SLinus Torvalds 1099d29213fSKyle McMartin extern void __ashrdi3(void); 1109d29213fSKyle McMartin extern void __ashldi3(void); 1119d29213fSKyle McMartin extern void __lshrdi3(void); 1129d29213fSKyle McMartin extern void __muldi3(void); 113ca0ad83dSJohn David Anglin extern void __ucmpdi2(void); 1149d29213fSKyle McMartin 1159d29213fSKyle McMartin EXPORT_SYMBOL(__ashrdi3); 1169d29213fSKyle McMartin EXPORT_SYMBOL(__ashldi3); 1179d29213fSKyle McMartin EXPORT_SYMBOL(__lshrdi3); 1189d29213fSKyle McMartin EXPORT_SYMBOL(__muldi3); 119ca0ad83dSJohn David Anglin EXPORT_SYMBOL(__ucmpdi2); 1209d29213fSKyle McMartin 1211da177e4SLinus Torvalds asmlinkage void * __canonicalize_funcptr_for_compare(void *); 1221da177e4SLinus Torvalds EXPORT_SYMBOL(__canonicalize_funcptr_for_compare); 1231da177e4SLinus Torvalds 1249d29213fSKyle McMartin #ifdef CONFIG_64BIT 1259d29213fSKyle McMartin extern void __divdi3(void); 1269d29213fSKyle McMartin extern void __udivdi3(void); 1279d29213fSKyle McMartin extern void __umoddi3(void); 1289d29213fSKyle McMartin extern void __moddi3(void); 1299d29213fSKyle McMartin 1309d29213fSKyle McMartin EXPORT_SYMBOL(__divdi3); 1319d29213fSKyle McMartin EXPORT_SYMBOL(__udivdi3); 1329d29213fSKyle McMartin EXPORT_SYMBOL(__umoddi3); 1339d29213fSKyle McMartin EXPORT_SYMBOL(__moddi3); 1349d29213fSKyle McMartin #endif 1359d29213fSKyle McMartin 136a8f44e38SHelge Deller #ifndef CONFIG_64BIT 1371da177e4SLinus Torvalds extern void $$dyncall(void); 1381da177e4SLinus Torvalds EXPORT_SYMBOL($$dyncall); 1391da177e4SLinus Torvalds #endif 1401da177e4SLinus Torvalds 1411da177e4SLinus Torvalds #ifdef CONFIG_DISCONTIGMEM 1421da177e4SLinus Torvalds #include <asm/mmzone.h> 1431da177e4SLinus Torvalds EXPORT_SYMBOL(node_data); 1441da177e4SLinus Torvalds EXPORT_SYMBOL(pfnnid_map); 1451da177e4SLinus Torvalds #endif 146db51d92bSKyle McMartin 147d75f054aSHelge Deller #ifdef CONFIG_FUNCTION_TRACER 148d75f054aSHelge Deller extern void _mcount(void); 149d75f054aSHelge Deller EXPORT_SYMBOL(_mcount); 150d75f054aSHelge Deller #endif 151d75f054aSHelge Deller 15276334539SJohn David Anglin /* from pacache.S -- needed for clear/copy_page */ 15376334539SJohn David Anglin EXPORT_SYMBOL(clear_page_asm); 15476334539SJohn David Anglin EXPORT_SYMBOL(copy_page_asm); 155