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