1 /*
2  *    Architecture-specific kernel symbols
3  *
4  *    Copyright (C) 2000-2001 Richard Hirst <rhirst with parisc-linux.org>
5  *    Copyright (C) 2001 Dave Kennedy
6  *    Copyright (C) 2001 Paul Bame <bame at parisc-linux.org>
7  *    Copyright (C) 2001-2003 Grant Grundler <grundler with parisc-linux.org>
8  *    Copyright (C) 2002-2003 Matthew Wilcox <willy at parisc-linux.org>
9  *    Copyright (C) 2002 Randolph Chung <tausq at parisc-linux.org>
10  *    Copyright (C) 2002-2007 Helge Deller <deller with parisc-linux.org>
11  *
12  *    This program is free software; you can redistribute it and/or modify
13  *    it under the terms of the GNU General Public License as published by
14  *    the Free Software Foundation; either version 2 of the License, or
15  *    (at your option) any later version.
16  *
17  *    This program is distributed in the hope that it will be useful,
18  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
19  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  *    GNU General Public License for more details.
21  *
22  *    You should have received a copy of the GNU General Public License
23  *    along with this program; if not, write to the Free Software
24  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
25  */
26 
27 #include <linux/module.h>
28 #include <linux/kernel.h>
29 #include <linux/syscalls.h>
30 
31 #include <linux/string.h>
32 EXPORT_SYMBOL(memset);
33 
34 #include <linux/atomic.h>
35 EXPORT_SYMBOL(__xchg8);
36 EXPORT_SYMBOL(__xchg32);
37 EXPORT_SYMBOL(__cmpxchg_u32);
38 #ifdef CONFIG_SMP
39 EXPORT_SYMBOL(__atomic_hash);
40 #endif
41 #ifdef CONFIG_64BIT
42 EXPORT_SYMBOL(__xchg64);
43 EXPORT_SYMBOL(__cmpxchg_u64);
44 #endif
45 
46 #include <asm/uaccess.h>
47 EXPORT_SYMBOL(lclear_user);
48 EXPORT_SYMBOL(lstrnlen_user);
49 
50 /* Global fixups */
51 extern void fixup_get_user_skip_1(void);
52 extern void fixup_get_user_skip_2(void);
53 extern void fixup_put_user_skip_1(void);
54 extern void fixup_put_user_skip_2(void);
55 EXPORT_SYMBOL(fixup_get_user_skip_1);
56 EXPORT_SYMBOL(fixup_get_user_skip_2);
57 EXPORT_SYMBOL(fixup_put_user_skip_1);
58 EXPORT_SYMBOL(fixup_put_user_skip_2);
59 
60 #ifndef CONFIG_64BIT
61 /* Needed so insmod can set dp value */
62 extern int $global$;
63 EXPORT_SYMBOL($global$);
64 #endif
65 
66 #include <asm/io.h>
67 EXPORT_SYMBOL(memcpy_toio);
68 EXPORT_SYMBOL(memcpy_fromio);
69 EXPORT_SYMBOL(memset_io);
70 
71 extern void $$divI(void);
72 extern void $$divU(void);
73 extern void $$remI(void);
74 extern void $$remU(void);
75 extern void $$mulI(void);
76 extern void $$divU_3(void);
77 extern void $$divU_5(void);
78 extern void $$divU_6(void);
79 extern void $$divU_9(void);
80 extern void $$divU_10(void);
81 extern void $$divU_12(void);
82 extern void $$divU_7(void);
83 extern void $$divU_14(void);
84 extern void $$divU_15(void);
85 extern void $$divI_3(void);
86 extern void $$divI_5(void);
87 extern void $$divI_6(void);
88 extern void $$divI_7(void);
89 extern void $$divI_9(void);
90 extern void $$divI_10(void);
91 extern void $$divI_12(void);
92 extern void $$divI_14(void);
93 extern void $$divI_15(void);
94 
95 EXPORT_SYMBOL($$divI);
96 EXPORT_SYMBOL($$divU);
97 EXPORT_SYMBOL($$remI);
98 EXPORT_SYMBOL($$remU);
99 EXPORT_SYMBOL($$mulI);
100 EXPORT_SYMBOL($$divU_3);
101 EXPORT_SYMBOL($$divU_5);
102 EXPORT_SYMBOL($$divU_6);
103 EXPORT_SYMBOL($$divU_9);
104 EXPORT_SYMBOL($$divU_10);
105 EXPORT_SYMBOL($$divU_12);
106 EXPORT_SYMBOL($$divU_7);
107 EXPORT_SYMBOL($$divU_14);
108 EXPORT_SYMBOL($$divU_15);
109 EXPORT_SYMBOL($$divI_3);
110 EXPORT_SYMBOL($$divI_5);
111 EXPORT_SYMBOL($$divI_6);
112 EXPORT_SYMBOL($$divI_7);
113 EXPORT_SYMBOL($$divI_9);
114 EXPORT_SYMBOL($$divI_10);
115 EXPORT_SYMBOL($$divI_12);
116 EXPORT_SYMBOL($$divI_14);
117 EXPORT_SYMBOL($$divI_15);
118 
119 extern void __ashrdi3(void);
120 extern void __ashldi3(void);
121 extern void __lshrdi3(void);
122 extern void __muldi3(void);
123 
124 EXPORT_SYMBOL(__ashrdi3);
125 EXPORT_SYMBOL(__ashldi3);
126 EXPORT_SYMBOL(__lshrdi3);
127 EXPORT_SYMBOL(__muldi3);
128 
129 asmlinkage void * __canonicalize_funcptr_for_compare(void *);
130 EXPORT_SYMBOL(__canonicalize_funcptr_for_compare);
131 
132 #ifdef CONFIG_64BIT
133 extern void __divdi3(void);
134 extern void __udivdi3(void);
135 extern void __umoddi3(void);
136 extern void __moddi3(void);
137 
138 EXPORT_SYMBOL(__divdi3);
139 EXPORT_SYMBOL(__udivdi3);
140 EXPORT_SYMBOL(__umoddi3);
141 EXPORT_SYMBOL(__moddi3);
142 #endif
143 
144 #ifndef CONFIG_64BIT
145 extern void $$dyncall(void);
146 EXPORT_SYMBOL($$dyncall);
147 #endif
148 
149 #ifdef CONFIG_DISCONTIGMEM
150 #include <asm/mmzone.h>
151 EXPORT_SYMBOL(node_data);
152 EXPORT_SYMBOL(pfnnid_map);
153 #endif
154 
155 #ifdef CONFIG_FUNCTION_TRACER
156 extern void _mcount(void);
157 EXPORT_SYMBOL(_mcount);
158 #endif
159 
160 /* from pacache.S -- needed for copy_page */
161 EXPORT_SYMBOL(copy_user_page_asm);
162