Merge branch 'master'
[linux-2.6-block.git] / arch / parisc / kernel / parisc_ksyms.c
CommitLineData
1da177e4
LT
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-2003 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/config.h>
28#include <linux/module.h>
29#include <linux/kernel.h>
30#include <linux/syscalls.h>
31
32#include <linux/string.h>
1da177e4 33EXPORT_SYMBOL(memset);
1da177e4 34
1da177e4
LT
35#include <asm/atomic.h>
36EXPORT_SYMBOL(__xchg8);
37EXPORT_SYMBOL(__xchg32);
38EXPORT_SYMBOL(__cmpxchg_u32);
39#ifdef CONFIG_SMP
40EXPORT_SYMBOL(__atomic_hash);
41#endif
42#ifdef __LP64__
43EXPORT_SYMBOL(__xchg64);
44EXPORT_SYMBOL(__cmpxchg_u64);
45#endif
46
47#include <asm/uaccess.h>
48EXPORT_SYMBOL(lstrncpy_from_user);
49EXPORT_SYMBOL(lclear_user);
50EXPORT_SYMBOL(lstrnlen_user);
51
52/* Global fixups */
53extern void fixup_get_user_skip_1(void);
54extern void fixup_get_user_skip_2(void);
55extern void fixup_put_user_skip_1(void);
56extern void fixup_put_user_skip_2(void);
57EXPORT_SYMBOL(fixup_get_user_skip_1);
58EXPORT_SYMBOL(fixup_get_user_skip_2);
59EXPORT_SYMBOL(fixup_put_user_skip_1);
60EXPORT_SYMBOL(fixup_put_user_skip_2);
61
62#ifndef __LP64__
63/* Needed so insmod can set dp value */
64extern int $global$;
65EXPORT_SYMBOL($global$);
66#endif
67
68#include <asm/io.h>
1da177e4
LT
69EXPORT_SYMBOL(memcpy_toio);
70EXPORT_SYMBOL(memcpy_fromio);
71EXPORT_SYMBOL(memset_io);
72
73#include <asm/unistd.h>
1da177e4 74EXPORT_SYMBOL(sys_lseek);
1da177e4
LT
75EXPORT_SYMBOL(sys_write);
76
77#include <asm/semaphore.h>
78EXPORT_SYMBOL(__up);
79EXPORT_SYMBOL(__down_interruptible);
80EXPORT_SYMBOL(__down);
81
82extern void $$divI(void);
83extern void $$divU(void);
84extern void $$remI(void);
85extern void $$remU(void);
86extern void $$mulI(void);
87extern void $$divU_3(void);
88extern void $$divU_5(void);
89extern void $$divU_6(void);
90extern void $$divU_9(void);
91extern void $$divU_10(void);
92extern void $$divU_12(void);
93extern void $$divU_7(void);
94extern void $$divU_14(void);
95extern void $$divU_15(void);
96extern void $$divI_3(void);
97extern void $$divI_5(void);
98extern void $$divI_6(void);
99extern void $$divI_7(void);
100extern void $$divI_9(void);
101extern void $$divI_10(void);
102extern void $$divI_12(void);
103extern void $$divI_14(void);
104extern void $$divI_15(void);
105
106EXPORT_SYMBOL($$divI);
107EXPORT_SYMBOL($$divU);
108EXPORT_SYMBOL($$remI);
109EXPORT_SYMBOL($$remU);
110EXPORT_SYMBOL($$mulI);
111EXPORT_SYMBOL($$divU_3);
112EXPORT_SYMBOL($$divU_5);
113EXPORT_SYMBOL($$divU_6);
114EXPORT_SYMBOL($$divU_9);
115EXPORT_SYMBOL($$divU_10);
116EXPORT_SYMBOL($$divU_12);
117EXPORT_SYMBOL($$divU_7);
118EXPORT_SYMBOL($$divU_14);
119EXPORT_SYMBOL($$divU_15);
120EXPORT_SYMBOL($$divI_3);
121EXPORT_SYMBOL($$divI_5);
122EXPORT_SYMBOL($$divI_6);
123EXPORT_SYMBOL($$divI_7);
124EXPORT_SYMBOL($$divI_9);
125EXPORT_SYMBOL($$divI_10);
126EXPORT_SYMBOL($$divI_12);
127EXPORT_SYMBOL($$divI_14);
128EXPORT_SYMBOL($$divI_15);
129
130extern void __ashrdi3(void);
131extern void __ashldi3(void);
132extern void __lshrdi3(void);
133extern void __muldi3(void);
134
135EXPORT_SYMBOL(__ashrdi3);
136EXPORT_SYMBOL(__ashldi3);
137EXPORT_SYMBOL(__lshrdi3);
138EXPORT_SYMBOL(__muldi3);
139
140asmlinkage void * __canonicalize_funcptr_for_compare(void *);
141EXPORT_SYMBOL(__canonicalize_funcptr_for_compare);
142
143#ifdef __LP64__
144extern void __divdi3(void);
145extern void __udivdi3(void);
146extern void __umoddi3(void);
147extern void __moddi3(void);
148
149EXPORT_SYMBOL(__divdi3);
150EXPORT_SYMBOL(__udivdi3);
151EXPORT_SYMBOL(__umoddi3);
152EXPORT_SYMBOL(__moddi3);
153#endif
154
155#ifndef __LP64__
156extern void $$dyncall(void);
157EXPORT_SYMBOL($$dyncall);
158#endif
159
160#ifdef CONFIG_DISCONTIGMEM
161#include <asm/mmzone.h>
162EXPORT_SYMBOL(node_data);
163EXPORT_SYMBOL(pfnnid_map);
164#endif