blob: 1509c5597653c0c7e6731ed071477574aad09720 [file] [log] [blame]
Chris Metcalf867e3592010-05-28 23:09:12 -04001/*
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);
Chris Metcalf0707ad32010-06-25 17:04:17 -040024EXPORT_SYMBOL(__get_user_8);
Chris Metcalf867e3592010-05-28 23:09:12 -040025EXPORT_SYMBOL(__put_user_1);
26EXPORT_SYMBOL(__put_user_2);
27EXPORT_SYMBOL(__put_user_4);
28EXPORT_SYMBOL(__put_user_8);
29EXPORT_SYMBOL(strnlen_user_asm);
30EXPORT_SYMBOL(strncpy_from_user_asm);
31EXPORT_SYMBOL(clear_user_asm);
32
33/* arch/tile/kernel/entry.S */
34#include <linux/kernel.h>
35#include <asm/processor.h>
36EXPORT_SYMBOL(current_text_addr);
37EXPORT_SYMBOL(dump_stack);
38
Chris Metcalfc745a8a2010-08-13 08:52:19 -040039/* arch/tile/lib/, various memcpy files */
Chris Metcalf867e3592010-05-28 23:09:12 -040040EXPORT_SYMBOL(memcpy);
41EXPORT_SYMBOL(__copy_to_user_inatomic);
42EXPORT_SYMBOL(__copy_from_user_inatomic);
43EXPORT_SYMBOL(__copy_from_user_zeroing);
Chris Metcalfc745a8a2010-08-13 08:52:19 -040044#ifdef __tilegx__
45EXPORT_SYMBOL(__copy_in_user_inatomic);
46#endif
Chris Metcalf867e3592010-05-28 23:09:12 -040047
Chris Metcalf13c9d5a2010-10-14 15:12:55 -040048/* arch/tile/lib/mb_incoherent.S */
49EXPORT_SYMBOL(__mb_incoherent);
50
Chris Metcalf867e3592010-05-28 23:09:12 -040051/* hypervisor glue */
52#include <hv/hypervisor.h>
53EXPORT_SYMBOL(hv_dev_open);
54EXPORT_SYMBOL(hv_dev_pread);
55EXPORT_SYMBOL(hv_dev_pwrite);
Chris Metcalfc745a8a2010-08-13 08:52:19 -040056EXPORT_SYMBOL(hv_dev_preada);
57EXPORT_SYMBOL(hv_dev_pwritea);
58EXPORT_SYMBOL(hv_dev_poll);
59EXPORT_SYMBOL(hv_dev_poll_cancel);
Chris Metcalf867e3592010-05-28 23:09:12 -040060EXPORT_SYMBOL(hv_dev_close);
Chris Metcalfc745a8a2010-08-13 08:52:19 -040061EXPORT_SYMBOL(hv_sysconf);
62EXPORT_SYMBOL(hv_confstr);
Chris Metcalf867e3592010-05-28 23:09:12 -040063
Chris Metcalfc745a8a2010-08-13 08:52:19 -040064/* libgcc.a */
Chris Metcalf867e3592010-05-28 23:09:12 -040065uint32_t __udivsi3(uint32_t dividend, uint32_t divisor);
66EXPORT_SYMBOL(__udivsi3);
67int32_t __divsi3(int32_t dividend, int32_t divisor);
68EXPORT_SYMBOL(__divsi3);
69uint64_t __udivdi3(uint64_t dividend, uint64_t divisor);
70EXPORT_SYMBOL(__udivdi3);
71int64_t __divdi3(int64_t dividend, int64_t divisor);
72EXPORT_SYMBOL(__divdi3);
73uint32_t __umodsi3(uint32_t dividend, uint32_t divisor);
74EXPORT_SYMBOL(__umodsi3);
75int32_t __modsi3(int32_t dividend, int32_t divisor);
76EXPORT_SYMBOL(__modsi3);
77uint64_t __umoddi3(uint64_t dividend, uint64_t divisor);
78EXPORT_SYMBOL(__umoddi3);
79int64_t __moddi3(int64_t dividend, int64_t divisor);
80EXPORT_SYMBOL(__moddi3);
81#ifndef __tilegx__
82uint64_t __ll_mul(uint64_t n0, uint64_t n1);
83EXPORT_SYMBOL(__ll_mul);
Chris Metcalf867e3592010-05-28 23:09:12 -040084int64_t __muldi3(int64_t, int64_t);
85EXPORT_SYMBOL(__muldi3);
86uint64_t __lshrdi3(uint64_t, unsigned int);
87EXPORT_SYMBOL(__lshrdi3);
88#endif