Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 10 | |
| 11 | #include <asm/setup.h> |
| 12 | #include <asm/pgalloc.h> |
| 13 | #include <asm/irq.h> |
| 14 | #include <asm/io.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | #include <asm/checksum.h> |
| 16 | #include <asm/hardirq.h> |
David Howells | 4023440 | 2006-01-08 01:01:19 -0800 | [diff] [blame] | 17 | #include <asm/cacheflush.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 19 | extern long __memcpy_user(void *dst, const void *src, size_t count); |
David Howells | 4023440 | 2006-01-08 01:01:19 -0800 | [diff] [blame] | 20 | extern long __memset_user(void *dst, const void *src, size_t count); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
| 22 | /* platform dependent support */ |
| 23 | |
| 24 | EXPORT_SYMBOL(__ioremap); |
| 25 | EXPORT_SYMBOL(iounmap); |
| 26 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | EXPORT_SYMBOL(ip_fast_csum); |
| 28 | |
| 29 | #if 0 |
| 30 | EXPORT_SYMBOL(local_irq_count); |
| 31 | EXPORT_SYMBOL(local_bh_count); |
| 32 | #endif |
| 33 | EXPORT_SYMBOL(kernel_thread); |
| 34 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 35 | EXPORT_SYMBOL(__res_bus_clock_speed_HZ); |
| 36 | EXPORT_SYMBOL(__page_offset); |
| 37 | EXPORT_SYMBOL(__memcpy_user); |
David Howells | 4023440 | 2006-01-08 01:01:19 -0800 | [diff] [blame] | 38 | EXPORT_SYMBOL(__memset_user); |
| 39 | EXPORT_SYMBOL(frv_dcache_writeback); |
| 40 | EXPORT_SYMBOL(frv_cache_invalidate); |
| 41 | EXPORT_SYMBOL(frv_icache_invalidate); |
| 42 | EXPORT_SYMBOL(frv_cache_wback_inv); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | |
| 44 | #ifndef CONFIG_MMU |
| 45 | EXPORT_SYMBOL(memory_start); |
| 46 | EXPORT_SYMBOL(memory_end); |
| 47 | #endif |
| 48 | |
| 49 | EXPORT_SYMBOL(__debug_bug_trap); |
| 50 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 51 | /* The following are special because they're not called |
| 52 | explicitly (the C compiler generates them). Fortunately, |
| 53 | their interface isn't gonna change any time soon now, so |
| 54 | it's OK to leave it out of version control. */ |
| 55 | EXPORT_SYMBOL(memcpy); |
| 56 | EXPORT_SYMBOL(memset); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | |
David Howells | 4023440 | 2006-01-08 01:01:19 -0800 | [diff] [blame] | 58 | EXPORT_SYMBOL(__outsl_ns); |
| 59 | EXPORT_SYMBOL(__insl_ns); |
| 60 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 61 | #ifdef CONFIG_FRV_OUTOFLINE_ATOMIC_OPS |
| 62 | EXPORT_SYMBOL(atomic_test_and_ANDNOT_mask); |
| 63 | EXPORT_SYMBOL(atomic_test_and_OR_mask); |
| 64 | EXPORT_SYMBOL(atomic_test_and_XOR_mask); |
| 65 | EXPORT_SYMBOL(atomic_add_return); |
| 66 | EXPORT_SYMBOL(atomic_sub_return); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 67 | EXPORT_SYMBOL(__xchg_32); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 68 | EXPORT_SYMBOL(__cmpxchg_32); |
| 69 | #endif |
David Howells | 00460f4 | 2009-07-02 00:46:16 +0100 | [diff] [blame] | 70 | EXPORT_SYMBOL(atomic64_add_return); |
| 71 | EXPORT_SYMBOL(atomic64_sub_return); |
| 72 | EXPORT_SYMBOL(__xchg_64); |
| 73 | EXPORT_SYMBOL(__cmpxchg_64); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 74 | |
David Howells | 4023440 | 2006-01-08 01:01:19 -0800 | [diff] [blame] | 75 | EXPORT_SYMBOL(__debug_bug_printk); |
| 76 | EXPORT_SYMBOL(__delay_loops_MHz); |
| 77 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 78 | /* |
| 79 | * libgcc functions - functions that are used internally by the |
| 80 | * compiler... (prototypes are not correct though, but that |
| 81 | * doesn't really matter since they're not versioned). |
| 82 | */ |
| 83 | extern void __gcc_bcmp(void); |
| 84 | extern void __ashldi3(void); |
| 85 | extern void __ashrdi3(void); |
| 86 | extern void __cmpdi2(void); |
| 87 | extern void __divdi3(void); |
| 88 | extern void __lshrdi3(void); |
| 89 | extern void __moddi3(void); |
| 90 | extern void __muldi3(void); |
David Howells | 4023440 | 2006-01-08 01:01:19 -0800 | [diff] [blame] | 91 | extern void __mulll(void); |
| 92 | extern void __umulll(void); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 93 | extern void __negdi2(void); |
| 94 | extern void __ucmpdi2(void); |
| 95 | extern void __udivdi3(void); |
| 96 | extern void __udivmoddi4(void); |
| 97 | extern void __umoddi3(void); |
| 98 | |
| 99 | /* gcc lib functions */ |
| 100 | //EXPORT_SYMBOL(__gcc_bcmp); |
| 101 | EXPORT_SYMBOL(__ashldi3); |
| 102 | EXPORT_SYMBOL(__ashrdi3); |
| 103 | //EXPORT_SYMBOL(__cmpdi2); |
| 104 | //EXPORT_SYMBOL(__divdi3); |
| 105 | EXPORT_SYMBOL(__lshrdi3); |
| 106 | //EXPORT_SYMBOL(__moddi3); |
| 107 | EXPORT_SYMBOL(__muldi3); |
David Howells | 4023440 | 2006-01-08 01:01:19 -0800 | [diff] [blame] | 108 | EXPORT_SYMBOL(__mulll); |
| 109 | EXPORT_SYMBOL(__umulll); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 110 | EXPORT_SYMBOL(__negdi2); |
David Howells | 4023440 | 2006-01-08 01:01:19 -0800 | [diff] [blame] | 111 | EXPORT_SYMBOL(__ucmpdi2); |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 112 | //EXPORT_SYMBOL(__udivdi3); |
| 113 | //EXPORT_SYMBOL(__udivmoddi4); |
| 114 | //EXPORT_SYMBOL(__umoddi3); |