blob: f772704b3d28f6db52c93e6bda8029961036e0d7 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#include <linux/module.h>
2#include <linux/linkage.h>
3#include <linux/sched.h>
4#include <linux/string.h>
5#include <linux/mm.h>
6#include <linux/user.h>
7#include <linux/elfcore.h>
8#include <linux/in6.h>
9#include <linux/interrupt.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070010
11#include <asm/setup.h>
12#include <asm/pgalloc.h>
13#include <asm/irq.h>
14#include <asm/io.h>
15#include <asm/semaphore.h>
16#include <asm/checksum.h>
17#include <asm/hardirq.h>
David Howells40234402006-01-08 01:01:19 -080018#include <asm/cacheflush.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070019
Linus Torvalds1da177e2005-04-16 15:20:36 -070020extern long __memcpy_user(void *dst, const void *src, size_t count);
David Howells40234402006-01-08 01:01:19 -080021extern long __memset_user(void *dst, const void *src, size_t count);
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
23/* platform dependent support */
24
25EXPORT_SYMBOL(__ioremap);
26EXPORT_SYMBOL(iounmap);
27
Linus Torvalds1da177e2005-04-16 15:20:36 -070028EXPORT_SYMBOL(ip_fast_csum);
29
30#if 0
31EXPORT_SYMBOL(local_irq_count);
32EXPORT_SYMBOL(local_bh_count);
33#endif
34EXPORT_SYMBOL(kernel_thread);
35
Linus Torvalds1da177e2005-04-16 15:20:36 -070036EXPORT_SYMBOL(__res_bus_clock_speed_HZ);
37EXPORT_SYMBOL(__page_offset);
38EXPORT_SYMBOL(__memcpy_user);
David Howells40234402006-01-08 01:01:19 -080039EXPORT_SYMBOL(__memset_user);
40EXPORT_SYMBOL(frv_dcache_writeback);
41EXPORT_SYMBOL(frv_cache_invalidate);
42EXPORT_SYMBOL(frv_icache_invalidate);
43EXPORT_SYMBOL(frv_cache_wback_inv);
Linus Torvalds1da177e2005-04-16 15:20:36 -070044
45#ifndef CONFIG_MMU
46EXPORT_SYMBOL(memory_start);
47EXPORT_SYMBOL(memory_end);
48#endif
49
50EXPORT_SYMBOL(__debug_bug_trap);
51
Linus Torvalds1da177e2005-04-16 15:20:36 -070052/* The following are special because they're not called
53 explicitly (the C compiler generates them). Fortunately,
54 their interface isn't gonna change any time soon now, so
55 it's OK to leave it out of version control. */
56EXPORT_SYMBOL(memcpy);
57EXPORT_SYMBOL(memset);
Linus Torvalds1da177e2005-04-16 15:20:36 -070058
David Howells40234402006-01-08 01:01:19 -080059EXPORT_SYMBOL(__outsl_ns);
60EXPORT_SYMBOL(__insl_ns);
61
Linus Torvalds1da177e2005-04-16 15:20:36 -070062#ifdef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS
63EXPORT_SYMBOL(atomic_test_and_ANDNOT_mask);
64EXPORT_SYMBOL(atomic_test_and_OR_mask);
65EXPORT_SYMBOL(atomic_test_and_XOR_mask);
66EXPORT_SYMBOL(atomic_add_return);
67EXPORT_SYMBOL(atomic_sub_return);
Linus Torvalds1da177e2005-04-16 15:20:36 -070068EXPORT_SYMBOL(__xchg_32);
Linus Torvalds1da177e2005-04-16 15:20:36 -070069EXPORT_SYMBOL(__cmpxchg_32);
70#endif
71
David Howells40234402006-01-08 01:01:19 -080072EXPORT_SYMBOL(__debug_bug_printk);
73EXPORT_SYMBOL(__delay_loops_MHz);
74
Linus Torvalds1da177e2005-04-16 15:20:36 -070075/*
76 * libgcc functions - functions that are used internally by the
77 * compiler... (prototypes are not correct though, but that
78 * doesn't really matter since they're not versioned).
79 */
80extern void __gcc_bcmp(void);
81extern void __ashldi3(void);
82extern void __ashrdi3(void);
83extern void __cmpdi2(void);
84extern void __divdi3(void);
85extern void __lshrdi3(void);
86extern void __moddi3(void);
87extern void __muldi3(void);
David Howells40234402006-01-08 01:01:19 -080088extern void __mulll(void);
89extern void __umulll(void);
Linus Torvalds1da177e2005-04-16 15:20:36 -070090extern void __negdi2(void);
91extern void __ucmpdi2(void);
92extern void __udivdi3(void);
93extern void __udivmoddi4(void);
94extern void __umoddi3(void);
95
96 /* gcc lib functions */
97//EXPORT_SYMBOL(__gcc_bcmp);
98EXPORT_SYMBOL(__ashldi3);
99EXPORT_SYMBOL(__ashrdi3);
100//EXPORT_SYMBOL(__cmpdi2);
101//EXPORT_SYMBOL(__divdi3);
102EXPORT_SYMBOL(__lshrdi3);
103//EXPORT_SYMBOL(__moddi3);
104EXPORT_SYMBOL(__muldi3);
David Howells40234402006-01-08 01:01:19 -0800105EXPORT_SYMBOL(__mulll);
106EXPORT_SYMBOL(__umulll);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700107EXPORT_SYMBOL(__negdi2);
David Howells40234402006-01-08 01:01:19 -0800108EXPORT_SYMBOL(__ucmpdi2);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109//EXPORT_SYMBOL(__udivdi3);
110//EXPORT_SYMBOL(__udivmoddi4);
111//EXPORT_SYMBOL(__umoddi3);