1 // SPDX-License-Identifier: GPL-2.0-or-later 2 /* 3 * Architecture-specific kernel symbols 4 * 5 * Copyright (C) 2000-2001 Richard Hirst <rhirst with parisc-linux.org> 6 * Copyright (C) 2001 Dave Kennedy 7 * Copyright (C) 2001 Paul Bame <bame at parisc-linux.org> 8 * Copyright (C) 2001-2003 Grant Grundler <grundler with parisc-linux.org> 9 * Copyright (C) 2002-2003 Matthew Wilcox <willy at parisc-linux.org> 10 * Copyright (C) 2002 Randolph Chung <tausq at parisc-linux.org> 11 * Copyright (C) 2002-2007 Helge Deller <deller with parisc-linux.org> 12 */ 13 14 #include <linux/module.h> 15 #include <linux/kernel.h> 16 #include <linux/syscalls.h> 17 18 #include <linux/string.h> 19 EXPORT_SYMBOL(memset); 20 21 #include <linux/atomic.h> 22 EXPORT_SYMBOL(__xchg8); 23 EXPORT_SYMBOL(__xchg32); 24 EXPORT_SYMBOL(__cmpxchg_u32); 25 EXPORT_SYMBOL(__cmpxchg_u64); 26 #ifdef CONFIG_SMP 27 EXPORT_SYMBOL(__atomic_hash); 28 #endif 29 #ifdef CONFIG_64BIT 30 EXPORT_SYMBOL(__xchg64); 31 #endif 32 33 #include <linux/uaccess.h> 34 EXPORT_SYMBOL(lclear_user); 35 36 #ifndef CONFIG_64BIT 37 /* Needed so insmod can set dp value */ 38 extern int $global$; 39 EXPORT_SYMBOL($global$); 40 #endif 41 42 #include <asm/io.h> 43 EXPORT_SYMBOL(memcpy_toio); 44 EXPORT_SYMBOL(memcpy_fromio); 45 EXPORT_SYMBOL(memset_io); 46 47 extern void $$divI(void); 48 extern void $$divU(void); 49 extern void $$remI(void); 50 extern void $$remU(void); 51 extern void $$mulI(void); 52 extern void $$divU_3(void); 53 extern void $$divU_5(void); 54 extern void $$divU_6(void); 55 extern void $$divU_9(void); 56 extern void $$divU_10(void); 57 extern void $$divU_12(void); 58 extern void $$divU_7(void); 59 extern void $$divU_14(void); 60 extern void $$divU_15(void); 61 extern void $$divI_3(void); 62 extern void $$divI_5(void); 63 extern void $$divI_6(void); 64 extern void $$divI_7(void); 65 extern void $$divI_9(void); 66 extern void $$divI_10(void); 67 extern void $$divI_12(void); 68 extern void $$divI_14(void); 69 extern void $$divI_15(void); 70 71 EXPORT_SYMBOL($$divI); 72 EXPORT_SYMBOL($$divU); 73 EXPORT_SYMBOL($$remI); 74 EXPORT_SYMBOL($$remU); 75 EXPORT_SYMBOL($$mulI); 76 EXPORT_SYMBOL($$divU_3); 77 EXPORT_SYMBOL($$divU_5); 78 EXPORT_SYMBOL($$divU_6); 79 EXPORT_SYMBOL($$divU_9); 80 EXPORT_SYMBOL($$divU_10); 81 EXPORT_SYMBOL($$divU_12); 82 EXPORT_SYMBOL($$divU_7); 83 EXPORT_SYMBOL($$divU_14); 84 EXPORT_SYMBOL($$divU_15); 85 EXPORT_SYMBOL($$divI_3); 86 EXPORT_SYMBOL($$divI_5); 87 EXPORT_SYMBOL($$divI_6); 88 EXPORT_SYMBOL($$divI_7); 89 EXPORT_SYMBOL($$divI_9); 90 EXPORT_SYMBOL($$divI_10); 91 EXPORT_SYMBOL($$divI_12); 92 EXPORT_SYMBOL($$divI_14); 93 EXPORT_SYMBOL($$divI_15); 94 95 extern void __ashrdi3(void); 96 extern void __ashldi3(void); 97 extern void __lshrdi3(void); 98 extern void __muldi3(void); 99 extern void __ucmpdi2(void); 100 101 EXPORT_SYMBOL(__ashrdi3); 102 EXPORT_SYMBOL(__ashldi3); 103 EXPORT_SYMBOL(__lshrdi3); 104 EXPORT_SYMBOL(__muldi3); 105 EXPORT_SYMBOL(__ucmpdi2); 106 107 asmlinkage void * __canonicalize_funcptr_for_compare(void *); 108 EXPORT_SYMBOL(__canonicalize_funcptr_for_compare); 109 110 #ifdef CONFIG_64BIT 111 extern void __divdi3(void); 112 extern void __udivdi3(void); 113 extern void __umoddi3(void); 114 extern void __moddi3(void); 115 116 EXPORT_SYMBOL(__divdi3); 117 EXPORT_SYMBOL(__udivdi3); 118 EXPORT_SYMBOL(__umoddi3); 119 EXPORT_SYMBOL(__moddi3); 120 #endif 121 122 #ifndef CONFIG_64BIT 123 extern void $$dyncall(void); 124 EXPORT_SYMBOL($$dyncall); 125 #endif 126 127 #ifdef CONFIG_FUNCTION_TRACER 128 extern void _mcount(void); 129 EXPORT_SYMBOL(_mcount); 130 #endif 131 132 /* from pacache.S -- needed for clear/copy_page */ 133 EXPORT_SYMBOL(clear_page_asm); 134 EXPORT_SYMBOL(copy_page_asm); 135