blob: 3ead20fb6f4b2f45d7ec6f6bee19f82a3d4364af [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 */
17
18#include <asm/semaphore.h>
19EXPORT_SYMBOL(__down);
20EXPORT_SYMBOL(__down_interruptible);
21EXPORT_SYMBOL(__down_trylock);
22EXPORT_SYMBOL(__up);
23
24#include <asm/page.h>
25EXPORT_SYMBOL(clear_page);
26
27#ifdef CONFIG_VIRTUAL_MEM_MAP
28#include <linux/bootmem.h>
Dean Roeb77dae52005-11-09 14:25:06 -060029EXPORT_SYMBOL(min_low_pfn); /* defined by bootmem.c, but not exported by generic code */
Linus Torvalds1da177e2005-04-16 15:20:36 -070030EXPORT_SYMBOL(max_low_pfn); /* defined by bootmem.c, but not exported by generic code */
31#endif
32
33#include <asm/processor.h>
34EXPORT_SYMBOL(per_cpu__cpu_info);
35#ifdef CONFIG_SMP
36EXPORT_SYMBOL(per_cpu__local_per_cpu_offset);
37#endif
38
39#include <asm/uaccess.h>
40EXPORT_SYMBOL(__copy_user);
41EXPORT_SYMBOL(__do_clear_user);
42EXPORT_SYMBOL(__strlen_user);
43EXPORT_SYMBOL(__strncpy_from_user);
44EXPORT_SYMBOL(__strnlen_user);
45
Linus Torvalds1da177e2005-04-16 15:20:36 -070046/* from arch/ia64/lib */
47extern void __divsi3(void);
48extern void __udivsi3(void);
49extern void __modsi3(void);
50extern void __umodsi3(void);
51extern void __divdi3(void);
52extern void __udivdi3(void);
53extern void __moddi3(void);
54extern void __umoddi3(void);
55
56EXPORT_SYMBOL(__divsi3);
57EXPORT_SYMBOL(__udivsi3);
58EXPORT_SYMBOL(__modsi3);
59EXPORT_SYMBOL(__umodsi3);
60EXPORT_SYMBOL(__divdi3);
61EXPORT_SYMBOL(__udivdi3);
62EXPORT_SYMBOL(__moddi3);
63EXPORT_SYMBOL(__umoddi3);
64
Prarit Bhargava0a69ca92006-07-31 09:12:11 -040065#if defined(CONFIG_MD_RAID456) || defined(CONFIG_MD_RAID456_MODULE)
Linus Torvalds1da177e2005-04-16 15:20:36 -070066extern void xor_ia64_2(void);
67extern void xor_ia64_3(void);
68extern void xor_ia64_4(void);
69extern void xor_ia64_5(void);
70
71EXPORT_SYMBOL(xor_ia64_2);
72EXPORT_SYMBOL(xor_ia64_3);
73EXPORT_SYMBOL(xor_ia64_4);
74EXPORT_SYMBOL(xor_ia64_5);
75#endif
76
77#include <asm/pal.h>
78EXPORT_SYMBOL(ia64_pal_call_phys_stacked);
79EXPORT_SYMBOL(ia64_pal_call_phys_static);
80EXPORT_SYMBOL(ia64_pal_call_stacked);
81EXPORT_SYMBOL(ia64_pal_call_static);
82EXPORT_SYMBOL(ia64_load_scratch_fpregs);
83EXPORT_SYMBOL(ia64_save_scratch_fpregs);
84
85#include <asm/unwind.h>
86EXPORT_SYMBOL(unw_init_running);
87
88#ifdef ASM_SUPPORTED
89# ifdef CONFIG_SMP
Andrew Mortona1365642006-01-08 01:04:09 -080090# if (__GNUC__ == 3 && __GNUC_MINOR__ < 3)
Linus Torvalds1da177e2005-04-16 15:20:36 -070091/*
92 * This is not a normal routine and we don't want a function descriptor for it, so we use
93 * a fake declaration here.
94 */
95extern char ia64_spinlock_contention_pre3_4;
96EXPORT_SYMBOL(ia64_spinlock_contention_pre3_4);
97# else
98/*
99 * This is not a normal routine and we don't want a function descriptor for it, so we use
100 * a fake declaration here.
101 */
102extern char ia64_spinlock_contention;
103EXPORT_SYMBOL(ia64_spinlock_contention);
104# endif
105# endif
106#endif
107
108extern char ia64_ivt[];
109EXPORT_SYMBOL(ia64_ivt);