11a59d1b8SThomas Gleixner // SPDX-License-Identifier: GPL-2.0-or-later 21da177e4SLinus Torvalds /* 31da177e4SLinus Torvalds * Architecture-specific kernel symbols 41da177e4SLinus Torvalds * 51da177e4SLinus Torvalds * Copyright (C) 2000-2001 Richard Hirst <rhirst with parisc-linux.org> 61da177e4SLinus Torvalds * Copyright (C) 2001 Dave Kennedy 71da177e4SLinus Torvalds * Copyright (C) 2001 Paul Bame <bame at parisc-linux.org> 81da177e4SLinus Torvalds * Copyright (C) 2001-2003 Grant Grundler <grundler with parisc-linux.org> 91da177e4SLinus Torvalds * Copyright (C) 2002-2003 Matthew Wilcox <willy at parisc-linux.org> 101da177e4SLinus Torvalds * Copyright (C) 2002 Randolph Chung <tausq at parisc-linux.org> 11a8f44e38SHelge Deller * Copyright (C) 2002-2007 Helge Deller <deller with parisc-linux.org> 121da177e4SLinus Torvalds */ 131da177e4SLinus Torvalds 141da177e4SLinus Torvalds #include <linux/module.h> 151da177e4SLinus Torvalds #include <linux/kernel.h> 161da177e4SLinus Torvalds #include <linux/syscalls.h> 171da177e4SLinus Torvalds 181da177e4SLinus Torvalds #include <linux/string.h> 191da177e4SLinus Torvalds EXPORT_SYMBOL(memset); 201da177e4SLinus Torvalds 2160063497SArun Sharma #include <linux/atomic.h> 221da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg8); 231da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg32); 241da177e4SLinus Torvalds EXPORT_SYMBOL(__cmpxchg_u32); 252aae008cSGuenter Roeck EXPORT_SYMBOL(__cmpxchg_u64); 261da177e4SLinus Torvalds #ifdef CONFIG_SMP 271da177e4SLinus Torvalds EXPORT_SYMBOL(__atomic_hash); 281da177e4SLinus Torvalds #endif 29a8f44e38SHelge Deller #ifdef CONFIG_64BIT 301da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg64); 311da177e4SLinus Torvalds #endif 321da177e4SLinus Torvalds 337c0f6ba6SLinus Torvalds #include <linux/uaccess.h> 341da177e4SLinus Torvalds EXPORT_SYMBOL(lclear_user); 351da177e4SLinus Torvalds EXPORT_SYMBOL(lstrnlen_user); 361da177e4SLinus Torvalds 37a8f44e38SHelge Deller #ifndef CONFIG_64BIT 381da177e4SLinus Torvalds /* Needed so insmod can set dp value */ 391da177e4SLinus Torvalds extern int $global$; 401da177e4SLinus Torvalds EXPORT_SYMBOL($global$); 411da177e4SLinus Torvalds #endif 421da177e4SLinus Torvalds 431da177e4SLinus Torvalds #include <asm/io.h> 441da177e4SLinus Torvalds EXPORT_SYMBOL(memcpy_toio); 451da177e4SLinus Torvalds EXPORT_SYMBOL(memcpy_fromio); 461da177e4SLinus Torvalds EXPORT_SYMBOL(memset_io); 471da177e4SLinus Torvalds 481da177e4SLinus Torvalds extern void $$divI(void); 491da177e4SLinus Torvalds extern void $$divU(void); 501da177e4SLinus Torvalds extern void $$remI(void); 511da177e4SLinus Torvalds extern void $$remU(void); 521da177e4SLinus Torvalds extern void $$mulI(void); 531da177e4SLinus Torvalds extern void $$divU_3(void); 541da177e4SLinus Torvalds extern void $$divU_5(void); 551da177e4SLinus Torvalds extern void $$divU_6(void); 561da177e4SLinus Torvalds extern void $$divU_9(void); 571da177e4SLinus Torvalds extern void $$divU_10(void); 581da177e4SLinus Torvalds extern void $$divU_12(void); 591da177e4SLinus Torvalds extern void $$divU_7(void); 601da177e4SLinus Torvalds extern void $$divU_14(void); 611da177e4SLinus Torvalds extern void $$divU_15(void); 621da177e4SLinus Torvalds extern void $$divI_3(void); 631da177e4SLinus Torvalds extern void $$divI_5(void); 641da177e4SLinus Torvalds extern void $$divI_6(void); 651da177e4SLinus Torvalds extern void $$divI_7(void); 661da177e4SLinus Torvalds extern void $$divI_9(void); 671da177e4SLinus Torvalds extern void $$divI_10(void); 681da177e4SLinus Torvalds extern void $$divI_12(void); 691da177e4SLinus Torvalds extern void $$divI_14(void); 701da177e4SLinus Torvalds extern void $$divI_15(void); 711da177e4SLinus Torvalds 721da177e4SLinus Torvalds EXPORT_SYMBOL($$divI); 731da177e4SLinus Torvalds EXPORT_SYMBOL($$divU); 741da177e4SLinus Torvalds EXPORT_SYMBOL($$remI); 751da177e4SLinus Torvalds EXPORT_SYMBOL($$remU); 761da177e4SLinus Torvalds EXPORT_SYMBOL($$mulI); 771da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_3); 781da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_5); 791da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_6); 801da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_9); 811da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_10); 821da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_12); 831da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_7); 841da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_14); 851da177e4SLinus Torvalds EXPORT_SYMBOL($$divU_15); 861da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_3); 871da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_5); 881da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_6); 891da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_7); 901da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_9); 911da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_10); 921da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_12); 931da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_14); 941da177e4SLinus Torvalds EXPORT_SYMBOL($$divI_15); 951da177e4SLinus Torvalds 969d29213fSKyle McMartin extern void __ashrdi3(void); 979d29213fSKyle McMartin extern void __ashldi3(void); 989d29213fSKyle McMartin extern void __lshrdi3(void); 999d29213fSKyle McMartin extern void __muldi3(void); 100ca0ad83dSJohn David Anglin extern void __ucmpdi2(void); 1019d29213fSKyle McMartin 1029d29213fSKyle McMartin EXPORT_SYMBOL(__ashrdi3); 1039d29213fSKyle McMartin EXPORT_SYMBOL(__ashldi3); 1049d29213fSKyle McMartin EXPORT_SYMBOL(__lshrdi3); 1059d29213fSKyle McMartin EXPORT_SYMBOL(__muldi3); 106ca0ad83dSJohn David Anglin EXPORT_SYMBOL(__ucmpdi2); 1079d29213fSKyle McMartin 1081da177e4SLinus Torvalds asmlinkage void * __canonicalize_funcptr_for_compare(void *); 1091da177e4SLinus Torvalds EXPORT_SYMBOL(__canonicalize_funcptr_for_compare); 1101da177e4SLinus Torvalds 1119d29213fSKyle McMartin #ifdef CONFIG_64BIT 1129d29213fSKyle McMartin extern void __divdi3(void); 1139d29213fSKyle McMartin extern void __udivdi3(void); 1149d29213fSKyle McMartin extern void __umoddi3(void); 1159d29213fSKyle McMartin extern void __moddi3(void); 1169d29213fSKyle McMartin 1179d29213fSKyle McMartin EXPORT_SYMBOL(__divdi3); 1189d29213fSKyle McMartin EXPORT_SYMBOL(__udivdi3); 1199d29213fSKyle McMartin EXPORT_SYMBOL(__umoddi3); 1209d29213fSKyle McMartin EXPORT_SYMBOL(__moddi3); 1219d29213fSKyle McMartin #endif 1229d29213fSKyle McMartin 123a8f44e38SHelge Deller #ifndef CONFIG_64BIT 1241da177e4SLinus Torvalds extern void $$dyncall(void); 1251da177e4SLinus Torvalds EXPORT_SYMBOL($$dyncall); 1261da177e4SLinus Torvalds #endif 1271da177e4SLinus Torvalds 128d75f054aSHelge Deller #ifdef CONFIG_FUNCTION_TRACER 129d75f054aSHelge Deller extern void _mcount(void); 130d75f054aSHelge Deller EXPORT_SYMBOL(_mcount); 131d75f054aSHelge Deller #endif 132d75f054aSHelge Deller 13376334539SJohn David Anglin /* from pacache.S -- needed for clear/copy_page */ 13476334539SJohn David Anglin EXPORT_SYMBOL(clear_page_asm); 13576334539SJohn David Anglin EXPORT_SYMBOL(copy_page_asm); 136