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 #include <linux/libgcc.h> 18 19 #include <linux/string.h> 20 EXPORT_SYMBOL(memset); 21 22 #include <linux/atomic.h> 23 EXPORT_SYMBOL(__xchg8); 24 EXPORT_SYMBOL(__xchg32); 25 EXPORT_SYMBOL(__cmpxchg_u8); 26 EXPORT_SYMBOL(__cmpxchg_u16); 27 EXPORT_SYMBOL(__cmpxchg_u32); 28 EXPORT_SYMBOL(__cmpxchg_u64); 29 #ifdef CONFIG_SMP 30 EXPORT_SYMBOL(__atomic_hash); 31 #endif 32 #ifdef CONFIG_64BIT 33 EXPORT_SYMBOL(__xchg64); 34 #endif 35 36 #include <linux/uaccess.h> 37 EXPORT_SYMBOL(lclear_user); 38 39 #ifndef CONFIG_64BIT 40 /* Needed so insmod can set dp value */ 41 extern int $global$; 42 EXPORT_SYMBOL($global$); 43 #endif 44 45 #include <asm/io.h> 46 EXPORT_SYMBOL(memcpy_toio); 47 EXPORT_SYMBOL(memcpy_fromio); 48 EXPORT_SYMBOL(memset_io); 49 50 extern void $$divI(void); 51 extern void $$divU(void); 52 extern void $$remI(void); 53 extern void $$remU(void); 54 extern void $$mulI(void); 55 extern void $$divU_3(void); 56 extern void $$divU_5(void); 57 extern void $$divU_6(void); 58 extern void $$divU_9(void); 59 extern void $$divU_10(void); 60 extern void $$divU_12(void); 61 extern void $$divU_7(void); 62 extern void $$divU_14(void); 63 extern void $$divU_15(void); 64 extern void $$divI_3(void); 65 extern void $$divI_5(void); 66 extern void $$divI_6(void); 67 extern void $$divI_7(void); 68 extern void $$divI_9(void); 69 extern void $$divI_10(void); 70 extern void $$divI_12(void); 71 extern void $$divI_14(void); 72 extern void $$divI_15(void); 73 74 EXPORT_SYMBOL($$divI); 75 EXPORT_SYMBOL($$divU); 76 EXPORT_SYMBOL($$remI); 77 EXPORT_SYMBOL($$remU); 78 EXPORT_SYMBOL($$mulI); 79 EXPORT_SYMBOL($$divU_3); 80 EXPORT_SYMBOL($$divU_5); 81 EXPORT_SYMBOL($$divU_6); 82 EXPORT_SYMBOL($$divU_9); 83 EXPORT_SYMBOL($$divU_10); 84 EXPORT_SYMBOL($$divU_12); 85 EXPORT_SYMBOL($$divU_7); 86 EXPORT_SYMBOL($$divU_14); 87 EXPORT_SYMBOL($$divU_15); 88 EXPORT_SYMBOL($$divI_3); 89 EXPORT_SYMBOL($$divI_5); 90 EXPORT_SYMBOL($$divI_6); 91 EXPORT_SYMBOL($$divI_7); 92 EXPORT_SYMBOL($$divI_9); 93 EXPORT_SYMBOL($$divI_10); 94 EXPORT_SYMBOL($$divI_12); 95 EXPORT_SYMBOL($$divI_14); 96 EXPORT_SYMBOL($$divI_15); 97 98 EXPORT_SYMBOL(__ashrdi3); 99 EXPORT_SYMBOL(__ashldi3); 100 EXPORT_SYMBOL(__lshrdi3); 101 EXPORT_SYMBOL(__muldi3); 102 EXPORT_SYMBOL(__ucmpdi2); 103 104 asmlinkage void * __canonicalize_funcptr_for_compare(void *); 105 EXPORT_SYMBOL(__canonicalize_funcptr_for_compare); 106 107 #ifdef CONFIG_64BIT 108 extern void __divdi3(void); 109 extern void __udivdi3(void); 110 extern void __umoddi3(void); 111 extern void __moddi3(void); 112 113 EXPORT_SYMBOL(__divdi3); 114 EXPORT_SYMBOL(__udivdi3); 115 EXPORT_SYMBOL(__umoddi3); 116 EXPORT_SYMBOL(__moddi3); 117 #endif 118 119 #ifndef CONFIG_64BIT 120 extern void $$dyncall(void); 121 EXPORT_SYMBOL($$dyncall); 122 #endif 123 124 #ifdef CONFIG_FUNCTION_TRACER 125 extern void _mcount(void); 126 EXPORT_SYMBOL(_mcount); 127 #endif 128 129 /* from pacache.S -- needed for clear/copy_page */ 130 EXPORT_SYMBOL(clear_page_asm); 131 EXPORT_SYMBOL(copy_page_asm); 132
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.