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> 101da177e4SLinus Torvalds * Copyright (C) 2002-2003 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/config.h> 281da177e4SLinus Torvalds #include <linux/module.h> 291da177e4SLinus Torvalds #include <linux/kernel.h> 301da177e4SLinus Torvalds #include <linux/syscalls.h> 311da177e4SLinus Torvalds 321da177e4SLinus Torvalds #include <linux/string.h> 331da177e4SLinus Torvalds EXPORT_SYMBOL(memchr); 341da177e4SLinus Torvalds EXPORT_SYMBOL(memcmp); 351da177e4SLinus Torvalds EXPORT_SYMBOL(memmove); 361da177e4SLinus Torvalds EXPORT_SYMBOL(memscan); 371da177e4SLinus Torvalds EXPORT_SYMBOL(memset); 381da177e4SLinus Torvalds EXPORT_SYMBOL(strcat); 391da177e4SLinus Torvalds EXPORT_SYMBOL(strchr); 401da177e4SLinus Torvalds EXPORT_SYMBOL(strcmp); 411da177e4SLinus Torvalds EXPORT_SYMBOL(strcpy); 421da177e4SLinus Torvalds EXPORT_SYMBOL(strlen); 431da177e4SLinus Torvalds EXPORT_SYMBOL(strncat); 441da177e4SLinus Torvalds EXPORT_SYMBOL(strncmp); 451da177e4SLinus Torvalds EXPORT_SYMBOL(strncpy); 461da177e4SLinus Torvalds EXPORT_SYMBOL(strnlen); 471da177e4SLinus Torvalds EXPORT_SYMBOL(strrchr); 481da177e4SLinus Torvalds EXPORT_SYMBOL(strstr); 491da177e4SLinus Torvalds EXPORT_SYMBOL(strpbrk); 501da177e4SLinus Torvalds 511da177e4SLinus Torvalds #include <linux/pm.h> 521da177e4SLinus Torvalds EXPORT_SYMBOL(pm_power_off); 531da177e4SLinus Torvalds 541da177e4SLinus Torvalds #include <asm/atomic.h> 551da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg8); 561da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg32); 571da177e4SLinus Torvalds EXPORT_SYMBOL(__cmpxchg_u32); 581da177e4SLinus Torvalds #ifdef CONFIG_SMP 591da177e4SLinus Torvalds EXPORT_SYMBOL(__atomic_hash); 601da177e4SLinus Torvalds #endif 611da177e4SLinus Torvalds #ifdef __LP64__ 621da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg64); 631da177e4SLinus Torvalds EXPORT_SYMBOL(__cmpxchg_u64); 641da177e4SLinus Torvalds #endif 651da177e4SLinus Torvalds 661da177e4SLinus Torvalds #include <asm/uaccess.h> 671da177e4SLinus Torvalds EXPORT_SYMBOL(lstrncpy_from_user); 681da177e4SLinus Torvalds EXPORT_SYMBOL(lclear_user); 691da177e4SLinus Torvalds EXPORT_SYMBOL(lstrnlen_user); 701da177e4SLinus Torvalds 711da177e4SLinus Torvalds /* Global fixups */ 721da177e4SLinus Torvalds extern void fixup_get_user_skip_1(void); 731da177e4SLinus Torvalds extern void fixup_get_user_skip_2(void); 741da177e4SLinus Torvalds extern void fixup_put_user_skip_1(void); 751da177e4SLinus Torvalds extern void fixup_put_user_skip_2(void); 761da177e4SLinus Torvalds EXPORT_SYMBOL(fixup_get_user_skip_1); 771da177e4SLinus Torvalds EXPORT_SYMBOL(fixup_get_user_skip_2); 781da177e4SLinus Torvalds EXPORT_SYMBOL(fixup_put_user_skip_1); 791da177e4SLinus Torvalds EXPORT_SYMBOL(fixup_put_user_skip_2); 801da177e4SLinus Torvalds 811da177e4SLinus Torvalds #ifndef __LP64__ 821da177e4SLinus Torvalds /* Needed so insmod can set dp value */ 831da177e4SLinus Torvalds extern int $global$; 841da177e4SLinus Torvalds EXPORT_SYMBOL($global$); 851da177e4SLinus Torvalds #endif 861da177e4SLinus Torvalds 871da177e4SLinus Torvalds #include <asm/io.h> 881da177e4SLinus Torvalds EXPORT_SYMBOL(__ioremap); 891da177e4SLinus Torvalds EXPORT_SYMBOL(iounmap); 901da177e4SLinus Torvalds EXPORT_SYMBOL(memcpy_toio); 911da177e4SLinus Torvalds EXPORT_SYMBOL(memcpy_fromio); 921da177e4SLinus Torvalds EXPORT_SYMBOL(memset_io); 931da177e4SLinus Torvalds 941da177e4SLinus Torvalds #include <asm/unistd.h> 951da177e4SLinus Torvalds EXPORT_SYMBOL(sys_open); 961da177e4SLinus Torvalds EXPORT_SYMBOL(sys_lseek); 971da177e4SLinus Torvalds EXPORT_SYMBOL(sys_read); 981da177e4SLinus Torvalds EXPORT_SYMBOL(sys_write); 991da177e4SLinus Torvalds 1001da177e4SLinus Torvalds #include <asm/semaphore.h> 1011da177e4SLinus Torvalds EXPORT_SYMBOL(__up); 1021da177e4SLinus Torvalds EXPORT_SYMBOL(__down_interruptible); 1031da177e4SLinus Torvalds EXPORT_SYMBOL(__down); 1041da177e4SLinus Torvalds 1051da177e4SLinus Torvalds extern void $$divI(void); 1061da177e4SLinus Torvalds extern void $$divU(void); 1071da177e4SLinus Torvalds extern void $$remI(void); 1081da177e4SLinus Torvalds extern void $$remU(void); 1091da177e4SLinus Torvalds extern void $$mulI(void); 1101da177e4SLinus Torvalds extern void $$divU_3(void); 1111da177e4SLinus Torvalds extern void $$divU_5(void); 1121da177e4SLinus Torvalds extern void $$divU_6(void); 1131da177e4SLinus Torvalds extern void $$divU_9(void); 1141da177e4SLinus Torvalds extern void $$divU_10(void); 1151da177e4SLinus Torvalds extern void $$divU_12(void); 1161da177e4SLinus Torvalds extern void $$divU_7(void); 1171da177e4SLinus Torvalds extern void $$divU_14(void); 1181da177e4SLinus Torvalds extern void $$divU_15(void); 1191da177e4SLinus Torvalds extern void $$divI_3(void); 1201da177e4SLinus Torvalds extern void $$divI_5(void); 1211da177e4SLinus Torvalds extern void $$divI_6(void); 1221da177e4SLinus Torvalds extern void $$divI_7(void); 1231da177e4SLinus Torvalds extern void $$divI_9(void); 1241da177e4SLinus Torvalds extern void $$divI_10(void); 1251da177e4SLinus Torvalds extern void $$divI_12(void); 1261da177e4SLinus Torvalds extern void $$divI_14(void); 1271da177e4SLinus Torvalds extern void $$divI_15(void); 1281da177e4SLinus Torvalds 1291da177e4SLinus Torvalds EXPORT_SYMBOL($$divI); 1301da177e4SLinus Torvalds EXPORT_SYMBOL($$divU); 1311da177e4SLinus Torvalds EXPORT_SYMBOL($$remI); 1321da177e4SLinus Torvalds EXPORT_SYMBOL($$remU); 1331da177e4SLinus Torvalds EXPORT_SYMBOL($$mulI); 1341da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_3); 1351da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_5); 1361da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_6); 1371da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_9); 1381da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_10); 1391da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_12); 1401da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_7); 1411da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_14); 1421da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_15); 1431da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_3); 1441da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_5); 1451da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_6); 1461da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_7); 1471da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_9); 1481da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_10); 1491da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_12); 1501da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_14); 1511da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_15); 1521da177e4SLinus Torvalds 1531da177e4SLinus Torvalds extern void __ashrdi3(void); 1541da177e4SLinus Torvalds extern void __ashldi3(void); 1551da177e4SLinus Torvalds extern void __lshrdi3(void); 1561da177e4SLinus Torvalds extern void __muldi3(void); 1571da177e4SLinus Torvalds 1581da177e4SLinus Torvalds EXPORT_SYMBOL(__ashrdi3); 1591da177e4SLinus Torvalds EXPORT_SYMBOL(__ashldi3); 1601da177e4SLinus Torvalds EXPORT_SYMBOL(__lshrdi3); 1611da177e4SLinus Torvalds EXPORT_SYMBOL(__muldi3); 1621da177e4SLinus Torvalds 1631da177e4SLinus Torvalds asmlinkage void * __canonicalize_funcptr_for_compare(void *); 1641da177e4SLinus Torvalds EXPORT_SYMBOL(__canonicalize_funcptr_for_compare); 1651da177e4SLinus Torvalds 1661da177e4SLinus Torvalds #ifdef __LP64__ 1671da177e4SLinus Torvalds extern void __divdi3(void); 1681da177e4SLinus Torvalds extern void __udivdi3(void); 1691da177e4SLinus Torvalds extern void __umoddi3(void); 1701da177e4SLinus Torvalds extern void __moddi3(void); 1711da177e4SLinus Torvalds 1721da177e4SLinus Torvalds EXPORT_SYMBOL(__divdi3); 1731da177e4SLinus Torvalds EXPORT_SYMBOL(__udivdi3); 1741da177e4SLinus Torvalds EXPORT_SYMBOL(__umoddi3); 1751da177e4SLinus Torvalds EXPORT_SYMBOL(__moddi3); 1761da177e4SLinus Torvalds #endif 1771da177e4SLinus Torvalds 1781da177e4SLinus Torvalds #ifndef __LP64__ 1791da177e4SLinus Torvalds extern void $$dyncall(void); 1801da177e4SLinus Torvalds EXPORT_SYMBOL($$dyncall); 1811da177e4SLinus Torvalds #endif 1821da177e4SLinus Torvalds 1831da177e4SLinus Torvalds #ifdef CONFIG_DISCONTIGMEM 1841da177e4SLinus Torvalds #include <asm/mmzone.h> 1851da177e4SLinus Torvalds EXPORT_SYMBOL(node_data); 1861da177e4SLinus Torvalds EXPORT_SYMBOL(pfnnid_map); 1871da177e4SLinus Torvalds #endif 188