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 341da177e4SLinus Torvalds #include <asm/atomic.h> 351da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg8); 361da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg32); 371da177e4SLinus Torvalds EXPORT_SYMBOL(__cmpxchg_u32); 381da177e4SLinus Torvalds #ifdef CONFIG_SMP 391da177e4SLinus Torvalds EXPORT_SYMBOL(__atomic_hash); 401da177e4SLinus Torvalds #endif 41a8f44e38SHelge Deller #ifdef CONFIG_64BIT 421da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg64); 431da177e4SLinus Torvalds EXPORT_SYMBOL(__cmpxchg_u64); 441da177e4SLinus Torvalds #endif 451da177e4SLinus Torvalds 461da177e4SLinus Torvalds #include <asm/uaccess.h> 471da177e4SLinus Torvalds EXPORT_SYMBOL(lstrncpy_from_user); 481da177e4SLinus Torvalds EXPORT_SYMBOL(lclear_user); 491da177e4SLinus Torvalds EXPORT_SYMBOL(lstrnlen_user); 501da177e4SLinus Torvalds 511da177e4SLinus Torvalds /* Global fixups */ 521da177e4SLinus Torvalds extern void fixup_get_user_skip_1(void); 531da177e4SLinus Torvalds extern void fixup_get_user_skip_2(void); 541da177e4SLinus Torvalds extern void fixup_put_user_skip_1(void); 551da177e4SLinus Torvalds extern void fixup_put_user_skip_2(void); 561da177e4SLinus Torvalds EXPORT_SYMBOL(fixup_get_user_skip_1); 571da177e4SLinus Torvalds EXPORT_SYMBOL(fixup_get_user_skip_2); 581da177e4SLinus Torvalds EXPORT_SYMBOL(fixup_put_user_skip_1); 591da177e4SLinus Torvalds EXPORT_SYMBOL(fixup_put_user_skip_2); 601da177e4SLinus Torvalds 61a8f44e38SHelge Deller #ifndef CONFIG_64BIT 621da177e4SLinus Torvalds /* Needed so insmod can set dp value */ 631da177e4SLinus Torvalds extern int $global$; 641da177e4SLinus Torvalds EXPORT_SYMBOL($global$); 651da177e4SLinus Torvalds #endif 661da177e4SLinus Torvalds 671da177e4SLinus Torvalds #include <asm/io.h> 681da177e4SLinus Torvalds EXPORT_SYMBOL(memcpy_toio); 691da177e4SLinus Torvalds EXPORT_SYMBOL(memcpy_fromio); 701da177e4SLinus Torvalds EXPORT_SYMBOL(memset_io); 711da177e4SLinus Torvalds 721da177e4SLinus Torvalds #include <asm/semaphore.h> 731da177e4SLinus Torvalds EXPORT_SYMBOL(__up); 741da177e4SLinus Torvalds EXPORT_SYMBOL(__down_interruptible); 751da177e4SLinus Torvalds EXPORT_SYMBOL(__down); 761da177e4SLinus Torvalds 771da177e4SLinus Torvalds extern void $$divI(void); 781da177e4SLinus Torvalds extern void $$divU(void); 791da177e4SLinus Torvalds extern void $$remI(void); 801da177e4SLinus Torvalds extern void $$remU(void); 811da177e4SLinus Torvalds extern void $$mulI(void); 821da177e4SLinus Torvalds extern void $$divU_3(void); 831da177e4SLinus Torvalds extern void $$divU_5(void); 841da177e4SLinus Torvalds extern void $$divU_6(void); 851da177e4SLinus Torvalds extern void $$divU_9(void); 861da177e4SLinus Torvalds extern void $$divU_10(void); 871da177e4SLinus Torvalds extern void $$divU_12(void); 881da177e4SLinus Torvalds extern void $$divU_7(void); 891da177e4SLinus Torvalds extern void $$divU_14(void); 901da177e4SLinus Torvalds extern void $$divU_15(void); 911da177e4SLinus Torvalds extern void $$divI_3(void); 921da177e4SLinus Torvalds extern void $$divI_5(void); 931da177e4SLinus Torvalds extern void $$divI_6(void); 941da177e4SLinus Torvalds extern void $$divI_7(void); 951da177e4SLinus Torvalds extern void $$divI_9(void); 961da177e4SLinus Torvalds extern void $$divI_10(void); 971da177e4SLinus Torvalds extern void $$divI_12(void); 981da177e4SLinus Torvalds extern void $$divI_14(void); 991da177e4SLinus Torvalds extern void $$divI_15(void); 1001da177e4SLinus Torvalds 1011da177e4SLinus Torvalds EXPORT_SYMBOL($$divI); 1021da177e4SLinus Torvalds EXPORT_SYMBOL($$divU); 1031da177e4SLinus Torvalds EXPORT_SYMBOL($$remI); 1041da177e4SLinus Torvalds EXPORT_SYMBOL($$remU); 1051da177e4SLinus Torvalds EXPORT_SYMBOL($$mulI); 1061da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_3); 1071da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_5); 1081da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_6); 1091da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_9); 1101da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_10); 1111da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_12); 1121da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_7); 1131da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_14); 1141da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_15); 1151da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_3); 1161da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_5); 1171da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_6); 1181da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_7); 1191da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_9); 1201da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_10); 1211da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_12); 1221da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_14); 1231da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_15); 1241da177e4SLinus Torvalds 1259d29213fSKyle McMartin extern void __ashrdi3(void); 1269d29213fSKyle McMartin extern void __ashldi3(void); 1279d29213fSKyle McMartin extern void __lshrdi3(void); 1289d29213fSKyle McMartin extern void __muldi3(void); 1299d29213fSKyle McMartin 1309d29213fSKyle McMartin EXPORT_SYMBOL(__ashrdi3); 1319d29213fSKyle McMartin EXPORT_SYMBOL(__ashldi3); 1329d29213fSKyle McMartin EXPORT_SYMBOL(__lshrdi3); 1339d29213fSKyle McMartin EXPORT_SYMBOL(__muldi3); 1349d29213fSKyle McMartin 1351da177e4SLinus Torvalds asmlinkage void * __canonicalize_funcptr_for_compare(void *); 1361da177e4SLinus Torvalds EXPORT_SYMBOL(__canonicalize_funcptr_for_compare); 1371da177e4SLinus Torvalds 1389d29213fSKyle McMartin #ifdef CONFIG_64BIT 1399d29213fSKyle McMartin extern void __divdi3(void); 1409d29213fSKyle McMartin extern void __udivdi3(void); 1419d29213fSKyle McMartin extern void __umoddi3(void); 1429d29213fSKyle McMartin extern void __moddi3(void); 1439d29213fSKyle McMartin 1449d29213fSKyle McMartin EXPORT_SYMBOL(__divdi3); 1459d29213fSKyle McMartin EXPORT_SYMBOL(__udivdi3); 1469d29213fSKyle McMartin EXPORT_SYMBOL(__umoddi3); 1479d29213fSKyle McMartin EXPORT_SYMBOL(__moddi3); 1489d29213fSKyle McMartin #endif 1499d29213fSKyle McMartin 150a8f44e38SHelge Deller #ifndef CONFIG_64BIT 1511da177e4SLinus Torvalds extern void $$dyncall(void); 1521da177e4SLinus Torvalds EXPORT_SYMBOL($$dyncall); 1531da177e4SLinus Torvalds #endif 1541da177e4SLinus Torvalds 1551da177e4SLinus Torvalds #ifdef CONFIG_DISCONTIGMEM 1561da177e4SLinus Torvalds #include <asm/mmzone.h> 1571da177e4SLinus Torvalds EXPORT_SYMBOL(node_data); 1581da177e4SLinus Torvalds EXPORT_SYMBOL(pfnnid_map); 1591da177e4SLinus Torvalds #endif 160