Loading...
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>
32EXPORT_SYMBOL(memset);
33
34#include <linux/atomic.h>
35EXPORT_SYMBOL(__xchg8);
36EXPORT_SYMBOL(__xchg32);
37EXPORT_SYMBOL(__cmpxchg_u32);
38EXPORT_SYMBOL(__cmpxchg_u64);
39#ifdef CONFIG_SMP
40EXPORT_SYMBOL(__atomic_hash);
41#endif
42#ifdef CONFIG_64BIT
43EXPORT_SYMBOL(__xchg64);
44#endif
45
46#include <linux/uaccess.h>
47EXPORT_SYMBOL(lclear_user);
48EXPORT_SYMBOL(lstrnlen_user);
49
50#ifndef CONFIG_64BIT
51/* Needed so insmod can set dp value */
52extern int $global$;
53EXPORT_SYMBOL($global$);
54#endif
55
56#include <asm/io.h>
57EXPORT_SYMBOL(memcpy_toio);
58EXPORT_SYMBOL(memcpy_fromio);
59EXPORT_SYMBOL(memset_io);
60
61extern void $$divI(void);
62extern void $$divU(void);
63extern void $$remI(void);
64extern void $$remU(void);
65extern void $$mulI(void);
66extern void $$divU_3(void);
67extern void $$divU_5(void);
68extern void $$divU_6(void);
69extern void $$divU_9(void);
70extern void $$divU_10(void);
71extern void $$divU_12(void);
72extern void $$divU_7(void);
73extern void $$divU_14(void);
74extern void $$divU_15(void);
75extern void $$divI_3(void);
76extern void $$divI_5(void);
77extern void $$divI_6(void);
78extern void $$divI_7(void);
79extern void $$divI_9(void);
80extern void $$divI_10(void);
81extern void $$divI_12(void);
82extern void $$divI_14(void);
83extern void $$divI_15(void);
84
85EXPORT_SYMBOL($$divI);
86EXPORT_SYMBOL($$divU);
87EXPORT_SYMBOL($$remI);
88EXPORT_SYMBOL($$remU);
89EXPORT_SYMBOL($$mulI);
90EXPORT_SYMBOL($$divU_3);
91EXPORT_SYMBOL($$divU_5);
92EXPORT_SYMBOL($$divU_6);
93EXPORT_SYMBOL($$divU_9);
94EXPORT_SYMBOL($$divU_10);
95EXPORT_SYMBOL($$divU_12);
96EXPORT_SYMBOL($$divU_7);
97EXPORT_SYMBOL($$divU_14);
98EXPORT_SYMBOL($$divU_15);
99EXPORT_SYMBOL($$divI_3);
100EXPORT_SYMBOL($$divI_5);
101EXPORT_SYMBOL($$divI_6);
102EXPORT_SYMBOL($$divI_7);
103EXPORT_SYMBOL($$divI_9);
104EXPORT_SYMBOL($$divI_10);
105EXPORT_SYMBOL($$divI_12);
106EXPORT_SYMBOL($$divI_14);
107EXPORT_SYMBOL($$divI_15);
108
109extern void __ashrdi3(void);
110extern void __ashldi3(void);
111extern void __lshrdi3(void);
112extern void __muldi3(void);
113extern void __ucmpdi2(void);
114
115EXPORT_SYMBOL(__ashrdi3);
116EXPORT_SYMBOL(__ashldi3);
117EXPORT_SYMBOL(__lshrdi3);
118EXPORT_SYMBOL(__muldi3);
119EXPORT_SYMBOL(__ucmpdi2);
120
121asmlinkage void * __canonicalize_funcptr_for_compare(void *);
122EXPORT_SYMBOL(__canonicalize_funcptr_for_compare);
123
124#ifdef CONFIG_64BIT
125extern void __divdi3(void);
126extern void __udivdi3(void);
127extern void __umoddi3(void);
128extern void __moddi3(void);
129
130EXPORT_SYMBOL(__divdi3);
131EXPORT_SYMBOL(__udivdi3);
132EXPORT_SYMBOL(__umoddi3);
133EXPORT_SYMBOL(__moddi3);
134#endif
135
136#ifndef CONFIG_64BIT
137extern void $$dyncall(void);
138EXPORT_SYMBOL($$dyncall);
139#endif
140
141#ifdef CONFIG_DISCONTIGMEM
142#include <asm/mmzone.h>
143EXPORT_SYMBOL(node_data);
144EXPORT_SYMBOL(pfnnid_map);
145#endif
146
147#ifdef CONFIG_FUNCTION_TRACER
148extern void _mcount(void);
149EXPORT_SYMBOL(_mcount);
150#endif
151
152/* from pacache.S -- needed for clear/copy_page */
153EXPORT_SYMBOL(clear_page_asm);
154EXPORT_SYMBOL(copy_page_asm);
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
18#include <linux/string.h>
19EXPORT_SYMBOL(memset);
20EXPORT_SYMBOL(strlen);
21EXPORT_SYMBOL(strcpy);
22EXPORT_SYMBOL(strncpy);
23EXPORT_SYMBOL(strcat);
24
25#include <linux/atomic.h>
26EXPORT_SYMBOL(__xchg8);
27EXPORT_SYMBOL(__xchg32);
28EXPORT_SYMBOL(__cmpxchg_u32);
29EXPORT_SYMBOL(__cmpxchg_u64);
30#ifdef CONFIG_SMP
31EXPORT_SYMBOL(__atomic_hash);
32#endif
33#ifdef CONFIG_64BIT
34EXPORT_SYMBOL(__xchg64);
35#endif
36
37#include <linux/uaccess.h>
38EXPORT_SYMBOL(lclear_user);
39EXPORT_SYMBOL(lstrnlen_user);
40
41#ifndef CONFIG_64BIT
42/* Needed so insmod can set dp value */
43extern int $global$;
44EXPORT_SYMBOL($global$);
45#endif
46
47#include <asm/io.h>
48EXPORT_SYMBOL(memcpy_toio);
49EXPORT_SYMBOL(memcpy_fromio);
50EXPORT_SYMBOL(memset_io);
51
52extern void $$divI(void);
53extern void $$divU(void);
54extern void $$remI(void);
55extern void $$remU(void);
56extern void $$mulI(void);
57extern void $$divU_3(void);
58extern void $$divU_5(void);
59extern void $$divU_6(void);
60extern void $$divU_9(void);
61extern void $$divU_10(void);
62extern void $$divU_12(void);
63extern void $$divU_7(void);
64extern void $$divU_14(void);
65extern void $$divU_15(void);
66extern void $$divI_3(void);
67extern void $$divI_5(void);
68extern void $$divI_6(void);
69extern void $$divI_7(void);
70extern void $$divI_9(void);
71extern void $$divI_10(void);
72extern void $$divI_12(void);
73extern void $$divI_14(void);
74extern void $$divI_15(void);
75
76EXPORT_SYMBOL($$divI);
77EXPORT_SYMBOL($$divU);
78EXPORT_SYMBOL($$remI);
79EXPORT_SYMBOL($$remU);
80EXPORT_SYMBOL($$mulI);
81EXPORT_SYMBOL($$divU_3);
82EXPORT_SYMBOL($$divU_5);
83EXPORT_SYMBOL($$divU_6);
84EXPORT_SYMBOL($$divU_9);
85EXPORT_SYMBOL($$divU_10);
86EXPORT_SYMBOL($$divU_12);
87EXPORT_SYMBOL($$divU_7);
88EXPORT_SYMBOL($$divU_14);
89EXPORT_SYMBOL($$divU_15);
90EXPORT_SYMBOL($$divI_3);
91EXPORT_SYMBOL($$divI_5);
92EXPORT_SYMBOL($$divI_6);
93EXPORT_SYMBOL($$divI_7);
94EXPORT_SYMBOL($$divI_9);
95EXPORT_SYMBOL($$divI_10);
96EXPORT_SYMBOL($$divI_12);
97EXPORT_SYMBOL($$divI_14);
98EXPORT_SYMBOL($$divI_15);
99
100extern void __ashrdi3(void);
101extern void __ashldi3(void);
102extern void __lshrdi3(void);
103extern void __muldi3(void);
104extern void __ucmpdi2(void);
105
106EXPORT_SYMBOL(__ashrdi3);
107EXPORT_SYMBOL(__ashldi3);
108EXPORT_SYMBOL(__lshrdi3);
109EXPORT_SYMBOL(__muldi3);
110EXPORT_SYMBOL(__ucmpdi2);
111
112asmlinkage void * __canonicalize_funcptr_for_compare(void *);
113EXPORT_SYMBOL(__canonicalize_funcptr_for_compare);
114
115#ifdef CONFIG_64BIT
116extern void __divdi3(void);
117extern void __udivdi3(void);
118extern void __umoddi3(void);
119extern void __moddi3(void);
120
121EXPORT_SYMBOL(__divdi3);
122EXPORT_SYMBOL(__udivdi3);
123EXPORT_SYMBOL(__umoddi3);
124EXPORT_SYMBOL(__moddi3);
125#endif
126
127#ifndef CONFIG_64BIT
128extern void $$dyncall(void);
129EXPORT_SYMBOL($$dyncall);
130#endif
131
132#ifdef CONFIG_FUNCTION_TRACER
133extern void _mcount(void);
134EXPORT_SYMBOL(_mcount);
135#endif
136
137/* from pacache.S -- needed for clear/copy_page */
138EXPORT_SYMBOL(clear_page_asm);
139EXPORT_SYMBOL(copy_page_asm);