174213b1716ea4e45d0206e2e5f5e07d88ca6706
[sfrench/cifs-2.6.git] / arch / parisc / kernel / parisc_ksyms.c
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 EXPORT_SYMBOL(__cmpxchg_u64);
39 #ifdef CONFIG_SMP
40 EXPORT_SYMBOL(__atomic_hash);
41 #endif
42 #ifdef CONFIG_64BIT
43 EXPORT_SYMBOL(__xchg64);
44 #endif
45
46 #include <linux/uaccess.h>
47 EXPORT_SYMBOL(lclear_user);
48 EXPORT_SYMBOL(lstrnlen_user);
49
50 #ifndef CONFIG_64BIT
51 /* Needed so insmod can set dp value */
52 extern int $global$;
53 EXPORT_SYMBOL($global$);
54 #endif
55
56 #include <asm/io.h>
57 EXPORT_SYMBOL(memcpy_toio);
58 EXPORT_SYMBOL(memcpy_fromio);
59 EXPORT_SYMBOL(memset_io);
60
61 extern void $$divI(void);
62 extern void $$divU(void);
63 extern void $$remI(void);
64 extern void $$remU(void);
65 extern void $$mulI(void);
66 extern void $$divU_3(void);
67 extern void $$divU_5(void);
68 extern void $$divU_6(void);
69 extern void $$divU_9(void);
70 extern void $$divU_10(void);
71 extern void $$divU_12(void);
72 extern void $$divU_7(void);
73 extern void $$divU_14(void);
74 extern void $$divU_15(void);
75 extern void $$divI_3(void);
76 extern void $$divI_5(void);
77 extern void $$divI_6(void);
78 extern void $$divI_7(void);
79 extern void $$divI_9(void);
80 extern void $$divI_10(void);
81 extern void $$divI_12(void);
82 extern void $$divI_14(void);
83 extern void $$divI_15(void);
84
85 EXPORT_SYMBOL($$divI);
86 EXPORT_SYMBOL($$divU);
87 EXPORT_SYMBOL($$remI);
88 EXPORT_SYMBOL($$remU);
89 EXPORT_SYMBOL($$mulI);
90 EXPORT_SYMBOL($$divU_3);
91 EXPORT_SYMBOL($$divU_5);
92 EXPORT_SYMBOL($$divU_6);
93 EXPORT_SYMBOL($$divU_9);
94 EXPORT_SYMBOL($$divU_10);
95 EXPORT_SYMBOL($$divU_12);
96 EXPORT_SYMBOL($$divU_7);
97 EXPORT_SYMBOL($$divU_14);
98 EXPORT_SYMBOL($$divU_15);
99 EXPORT_SYMBOL($$divI_3);
100 EXPORT_SYMBOL($$divI_5);
101 EXPORT_SYMBOL($$divI_6);
102 EXPORT_SYMBOL($$divI_7);
103 EXPORT_SYMBOL($$divI_9);
104 EXPORT_SYMBOL($$divI_10);
105 EXPORT_SYMBOL($$divI_12);
106 EXPORT_SYMBOL($$divI_14);
107 EXPORT_SYMBOL($$divI_15);
108
109 extern void __ashrdi3(void);
110 extern void __ashldi3(void);
111 extern void __lshrdi3(void);
112 extern void __muldi3(void);
113 extern void __ucmpdi2(void);
114
115 EXPORT_SYMBOL(__ashrdi3);
116 EXPORT_SYMBOL(__ashldi3);
117 EXPORT_SYMBOL(__lshrdi3);
118 EXPORT_SYMBOL(__muldi3);
119 EXPORT_SYMBOL(__ucmpdi2);
120
121 asmlinkage void * __canonicalize_funcptr_for_compare(void *);
122 EXPORT_SYMBOL(__canonicalize_funcptr_for_compare);
123
124 #ifdef CONFIG_64BIT
125 extern void __divdi3(void);
126 extern void __udivdi3(void);
127 extern void __umoddi3(void);
128 extern void __moddi3(void);
129
130 EXPORT_SYMBOL(__divdi3);
131 EXPORT_SYMBOL(__udivdi3);
132 EXPORT_SYMBOL(__umoddi3);
133 EXPORT_SYMBOL(__moddi3);
134 #endif
135
136 #ifndef CONFIG_64BIT
137 extern void $$dyncall(void);
138 EXPORT_SYMBOL($$dyncall);
139 #endif
140
141 #ifdef CONFIG_FUNCTION_TRACER
142 extern void _mcount(void);
143 EXPORT_SYMBOL(_mcount);
144 #endif
145
146 /* from pacache.S -- needed for clear/copy_page */
147 EXPORT_SYMBOL(clear_page_asm);
148 EXPORT_SYMBOL(copy_page_asm);