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> 17*388d5bdbSHelge Deller #include <linux/libgcc.h> 181da177e4SLinus Torvalds 191da177e4SLinus Torvalds #include <linux/string.h> 201da177e4SLinus Torvalds EXPORT_SYMBOL(memset); 211da177e4SLinus Torvalds 2260063497SArun Sharma #include <linux/atomic.h> 231da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg8); 241da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg32); 251da177e4SLinus Torvalds EXPORT_SYMBOL(__cmpxchg_u32); 262aae008cSGuenter Roeck EXPORT_SYMBOL(__cmpxchg_u64); 271da177e4SLinus Torvalds #ifdef CONFIG_SMP 281da177e4SLinus Torvalds EXPORT_SYMBOL(__atomic_hash); 291da177e4SLinus Torvalds #endif 30a8f44e38SHelge Deller #ifdef CONFIG_64BIT 311da177e4SLinus Torvalds EXPORT_SYMBOL(__xchg64); 321da177e4SLinus Torvalds #endif 331da177e4SLinus Torvalds 347c0f6ba6SLinus Torvalds #include <linux/uaccess.h> 351da177e4SLinus Torvalds EXPORT_SYMBOL(lclear_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 EXPORT_SYMBOL(__ashrdi3); 979d29213fSKyle McMartin EXPORT_SYMBOL(__ashldi3); 989d29213fSKyle McMartin EXPORT_SYMBOL(__lshrdi3); 999d29213fSKyle McMartin EXPORT_SYMBOL(__muldi3); 100ca0ad83dSJohn David Anglin EXPORT_SYMBOL(__ucmpdi2); 1019d29213fSKyle McMartin 1021da177e4SLinus Torvalds asmlinkage void * __canonicalize_funcptr_for_compare(void *); 1031da177e4SLinus Torvalds EXPORT_SYMBOL(__canonicalize_funcptr_for_compare); 1041da177e4SLinus Torvalds 1059d29213fSKyle McMartin #ifdef CONFIG_64BIT 1069d29213fSKyle McMartin extern void __divdi3(void); 1079d29213fSKyle McMartin extern void __udivdi3(void); 1089d29213fSKyle McMartin extern void __umoddi3(void); 1099d29213fSKyle McMartin extern void __moddi3(void); 1109d29213fSKyle McMartin 1119d29213fSKyle McMartin EXPORT_SYMBOL(__divdi3); 1129d29213fSKyle McMartin EXPORT_SYMBOL(__udivdi3); 1139d29213fSKyle McMartin EXPORT_SYMBOL(__umoddi3); 1149d29213fSKyle McMartin EXPORT_SYMBOL(__moddi3); 1159d29213fSKyle McMartin #endif 1169d29213fSKyle McMartin 117a8f44e38SHelge Deller #ifndef CONFIG_64BIT 1181da177e4SLinus Torvalds extern void $$dyncall(void); 1191da177e4SLinus Torvalds EXPORT_SYMBOL($$dyncall); 1201da177e4SLinus Torvalds #endif 1211da177e4SLinus Torvalds 122d75f054aSHelge Deller #ifdef CONFIG_FUNCTION_TRACER 123d75f054aSHelge Deller extern void _mcount(void); 124d75f054aSHelge Deller EXPORT_SYMBOL(_mcount); 125d75f054aSHelge Deller #endif 126d75f054aSHelge Deller 12776334539SJohn David Anglin /* from pacache.S -- needed for clear/copy_page */ 12876334539SJohn David Anglin EXPORT_SYMBOL(clear_page_asm); 12976334539SJohn David Anglin EXPORT_SYMBOL(copy_page_asm); 130