aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/lib/exports.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tile/lib/exports.c')
-rw-r--r--arch/tile/lib/exports.c78
1 files changed, 78 insertions, 0 deletions
diff --git a/arch/tile/lib/exports.c b/arch/tile/lib/exports.c
new file mode 100644
index 000000000000..af8e70e2a0ce
--- /dev/null
+++ b/arch/tile/lib/exports.c
@@ -0,0 +1,78 @@
1/*
2 * Copyright 2010 Tilera Corporation. All Rights Reserved.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation, version 2.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
11 * NON INFRINGEMENT. See the GNU General Public License for
12 * more details.
13 *
14 * Exports from assembler code and from libtile-cc.
15 */
16
17#include <linux/module.h>
18
19/* arch/tile/lib/usercopy.S */
20#include <linux/uaccess.h>
21EXPORT_SYMBOL(__get_user_1);
22EXPORT_SYMBOL(__get_user_2);
23EXPORT_SYMBOL(__get_user_4);
24EXPORT_SYMBOL(__put_user_1);
25EXPORT_SYMBOL(__put_user_2);
26EXPORT_SYMBOL(__put_user_4);
27EXPORT_SYMBOL(__put_user_8);
28EXPORT_SYMBOL(strnlen_user_asm);
29EXPORT_SYMBOL(strncpy_from_user_asm);
30EXPORT_SYMBOL(clear_user_asm);
31
32/* arch/tile/kernel/entry.S */
33#include <linux/kernel.h>
34#include <asm/processor.h>
35EXPORT_SYMBOL(current_text_addr);
36EXPORT_SYMBOL(dump_stack);
37
38/* arch/tile/lib/__memcpy.S */
39/* NOTE: on TILE64, these symbols appear in arch/tile/lib/memcpy_tile64.c */
40EXPORT_SYMBOL(memcpy);
41EXPORT_SYMBOL(__copy_to_user_inatomic);
42EXPORT_SYMBOL(__copy_from_user_inatomic);
43EXPORT_SYMBOL(__copy_from_user_zeroing);
44
45/* hypervisor glue */
46#include <hv/hypervisor.h>
47EXPORT_SYMBOL(hv_dev_open);
48EXPORT_SYMBOL(hv_dev_pread);
49EXPORT_SYMBOL(hv_dev_pwrite);
50EXPORT_SYMBOL(hv_dev_close);
51
52/* -ltile-cc */
53uint32_t __udivsi3(uint32_t dividend, uint32_t divisor);
54EXPORT_SYMBOL(__udivsi3);
55int32_t __divsi3(int32_t dividend, int32_t divisor);
56EXPORT_SYMBOL(__divsi3);
57uint64_t __udivdi3(uint64_t dividend, uint64_t divisor);
58EXPORT_SYMBOL(__udivdi3);
59int64_t __divdi3(int64_t dividend, int64_t divisor);
60EXPORT_SYMBOL(__divdi3);
61uint32_t __umodsi3(uint32_t dividend, uint32_t divisor);
62EXPORT_SYMBOL(__umodsi3);
63int32_t __modsi3(int32_t dividend, int32_t divisor);
64EXPORT_SYMBOL(__modsi3);
65uint64_t __umoddi3(uint64_t dividend, uint64_t divisor);
66EXPORT_SYMBOL(__umoddi3);
67int64_t __moddi3(int64_t dividend, int64_t divisor);
68EXPORT_SYMBOL(__moddi3);
69#ifndef __tilegx__
70uint64_t __ll_mul(uint64_t n0, uint64_t n1);
71EXPORT_SYMBOL(__ll_mul);
72#endif
73#ifndef __tilegx__
74int64_t __muldi3(int64_t, int64_t);
75EXPORT_SYMBOL(__muldi3);
76uint64_t __lshrdi3(uint64_t, unsigned int);
77EXPORT_SYMBOL(__lshrdi3);
78#endif