blob: c3b4412ccc676a85ee76fb0c3a0a436c85b85f68 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
2 * Architecture-specific kernel symbols
3 *
4 * Don't put any exports here unless it's defined in an assembler file.
5 * All other exports should be put directly after the definition.
6 */
7
Linus Torvalds1da177e2005-04-16 15:20:36 -07008#include <linux/module.h>
9
10#include <linux/string.h>
11EXPORT_SYMBOL(memset);
Linus Torvalds1da177e2005-04-16 15:20:36 -070012EXPORT_SYMBOL(memcpy);
Linus Torvalds1da177e2005-04-16 15:20:36 -070013EXPORT_SYMBOL(strlen);
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
15#include <asm/checksum.h>
16EXPORT_SYMBOL(ip_fast_csum); /* hand-coded assembly */
Tony Lucka5f8ee02006-12-07 13:18:57 -080017EXPORT_SYMBOL(csum_ipv6_magic);
Linus Torvalds1da177e2005-04-16 15:20:36 -070018
19#include <asm/semaphore.h>
20EXPORT_SYMBOL(__down);
21EXPORT_SYMBOL(__down_interruptible);
22EXPORT_SYMBOL(__down_trylock);
23EXPORT_SYMBOL(__up);
24
25#include <asm/page.h>
26EXPORT_SYMBOL(clear_page);
27
28#ifdef CONFIG_VIRTUAL_MEM_MAP
29#include <linux/bootmem.h>
Dean Roeb77dae52005-11-09 14:25:06 -060030EXPORT_SYMBOL(min_low_pfn); /* defined by bootmem.c, but not exported by generic code */
Linus Torvalds1da177e2005-04-16 15:20:36 -070031EXPORT_SYMBOL(max_low_pfn); /* defined by bootmem.c, but not exported by generic code */
32#endif
33
34#include <asm/processor.h>
35EXPORT_SYMBOL(per_cpu__cpu_info);
36#ifdef CONFIG_SMP
37EXPORT_SYMBOL(per_cpu__local_per_cpu_offset);
38#endif
39
40#include <asm/uaccess.h>
41EXPORT_SYMBOL(__copy_user);
42EXPORT_SYMBOL(__do_clear_user);
43EXPORT_SYMBOL(__strlen_user);
44EXPORT_SYMBOL(__strncpy_from_user);
45EXPORT_SYMBOL(__strnlen_user);
46
Linus Torvalds1da177e2005-04-16 15:20:36 -070047/* from arch/ia64/lib */
48extern void __divsi3(void);
49extern void __udivsi3(void);
50extern void __modsi3(void);
51extern void __umodsi3(void);
52extern void __divdi3(void);
53extern void __udivdi3(void);
54extern void __moddi3(void);
55extern void __umoddi3(void);
56
57EXPORT_SYMBOL(__divsi3);
58EXPORT_SYMBOL(__udivsi3);
59EXPORT_SYMBOL(__modsi3);
60EXPORT_SYMBOL(__umodsi3);
61EXPORT_SYMBOL(__divdi3);
62EXPORT_SYMBOL(__udivdi3);
63EXPORT_SYMBOL(__moddi3);
64EXPORT_SYMBOL(__umoddi3);
65
Andrew Mortonbdc26192007-12-07 16:10:19 -080066#include <asm/page.h>
67EXPORT_SYMBOL(copy_page);
68
Prarit Bhargava0a69ca92006-07-31 09:12:11 -040069#if defined(CONFIG_MD_RAID456) || defined(CONFIG_MD_RAID456_MODULE)
Linus Torvalds1da177e2005-04-16 15:20:36 -070070extern void xor_ia64_2(void);
71extern void xor_ia64_3(void);
72extern void xor_ia64_4(void);
73extern void xor_ia64_5(void);
74
75EXPORT_SYMBOL(xor_ia64_2);
76EXPORT_SYMBOL(xor_ia64_3);
77EXPORT_SYMBOL(xor_ia64_4);
78EXPORT_SYMBOL(xor_ia64_5);
79#endif
80
81#include <asm/pal.h>
82EXPORT_SYMBOL(ia64_pal_call_phys_stacked);
83EXPORT_SYMBOL(ia64_pal_call_phys_static);
84EXPORT_SYMBOL(ia64_pal_call_stacked);
85EXPORT_SYMBOL(ia64_pal_call_static);
86EXPORT_SYMBOL(ia64_load_scratch_fpregs);
87EXPORT_SYMBOL(ia64_save_scratch_fpregs);
88
89#include <asm/unwind.h>
90EXPORT_SYMBOL(unw_init_running);
91
92#ifdef ASM_SUPPORTED
93# ifdef CONFIG_SMP
Andrew Mortona1365642006-01-08 01:04:09 -080094# if (__GNUC__ == 3 && __GNUC_MINOR__ < 3)
Linus Torvalds1da177e2005-04-16 15:20:36 -070095/*
96 * This is not a normal routine and we don't want a function descriptor for it, so we use
97 * a fake declaration here.
98 */
99extern char ia64_spinlock_contention_pre3_4;
100EXPORT_SYMBOL(ia64_spinlock_contention_pre3_4);
101# else
102/*
103 * This is not a normal routine and we don't want a function descriptor for it, so we use
104 * a fake declaration here.
105 */
106extern char ia64_spinlock_contention;
107EXPORT_SYMBOL(ia64_spinlock_contention);
108# endif
109# endif
110#endif
111
David Mosberger-Tang2ab561a2006-06-21 11:19:22 -0700112#if defined(CONFIG_IA64_ESI) || defined(CONFIG_IA64_ESI_MODULE)
113extern void esi_call_phys (void);
114EXPORT_SYMBOL_GPL(esi_call_phys);
115#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -0700116extern char ia64_ivt[];
117EXPORT_SYMBOL(ia64_ivt);