blob: 9d171ca4302c6761eab62b486aba39d86da2f873 [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>
Chris Metcalf867e3592010-05-28 23:09:12 -040021EXPORT_SYMBOL(clear_user_asm);
Chris Metcalf00dce03132011-02-28 15:51:25 -050022EXPORT_SYMBOL(flush_user_asm);
Chris Metcalf00dce03132011-02-28 15:51:25 -050023EXPORT_SYMBOL(finv_user_asm);
Chris Metcalf867e3592010-05-28 23:09:12 -040024
25/* arch/tile/kernel/entry.S */
26#include <linux/kernel.h>
27#include <asm/processor.h>
28EXPORT_SYMBOL(current_text_addr);
Chris Metcalf867e3592010-05-28 23:09:12 -040029
Chris Metcalf3989efb2011-12-01 11:37:20 -050030/* arch/tile/kernel/head.S */
31EXPORT_SYMBOL(empty_zero_page);
32
Tony Lua61fd5e2013-08-09 13:26:09 -040033#ifdef CONFIG_FUNCTION_TRACER
34/* arch/tile/kernel/mcount_64.S */
35#include <asm/ftrace.h>
36EXPORT_SYMBOL(__mcount);
37#endif /* CONFIG_FUNCTION_TRACER */
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
48/* hypervisor glue */
49#include <hv/hypervisor.h>
50EXPORT_SYMBOL(hv_dev_open);
51EXPORT_SYMBOL(hv_dev_pread);
52EXPORT_SYMBOL(hv_dev_pwrite);
Chris Metcalfc745a8a2010-08-13 08:52:19 -040053EXPORT_SYMBOL(hv_dev_preada);
54EXPORT_SYMBOL(hv_dev_pwritea);
55EXPORT_SYMBOL(hv_dev_poll);
56EXPORT_SYMBOL(hv_dev_poll_cancel);
Chris Metcalf867e3592010-05-28 23:09:12 -040057EXPORT_SYMBOL(hv_dev_close);
Chris Metcalfc745a8a2010-08-13 08:52:19 -040058EXPORT_SYMBOL(hv_sysconf);
59EXPORT_SYMBOL(hv_confstr);
Chris Metcalf7c63e1e2013-02-01 15:06:06 -050060EXPORT_SYMBOL(hv_get_rtc);
61EXPORT_SYMBOL(hv_set_rtc);
Chris Metcalf867e3592010-05-28 23:09:12 -040062
Chris Metcalfc745a8a2010-08-13 08:52:19 -040063/* libgcc.a */
Chris Metcalf867e3592010-05-28 23:09:12 -040064uint32_t __udivsi3(uint32_t dividend, uint32_t divisor);
65EXPORT_SYMBOL(__udivsi3);
66int32_t __divsi3(int32_t dividend, int32_t divisor);
67EXPORT_SYMBOL(__divsi3);
68uint64_t __udivdi3(uint64_t dividend, uint64_t divisor);
69EXPORT_SYMBOL(__udivdi3);
70int64_t __divdi3(int64_t dividend, int64_t divisor);
71EXPORT_SYMBOL(__divdi3);
72uint32_t __umodsi3(uint32_t dividend, uint32_t divisor);
73EXPORT_SYMBOL(__umodsi3);
74int32_t __modsi3(int32_t dividend, int32_t divisor);
75EXPORT_SYMBOL(__modsi3);
76uint64_t __umoddi3(uint64_t dividend, uint64_t divisor);
77EXPORT_SYMBOL(__umoddi3);
78int64_t __moddi3(int64_t dividend, int64_t divisor);
79EXPORT_SYMBOL(__moddi3);
80#ifndef __tilegx__
Chris Metcalf867e3592010-05-28 23:09:12 -040081int64_t __muldi3(int64_t, int64_t);
82EXPORT_SYMBOL(__muldi3);
83uint64_t __lshrdi3(uint64_t, unsigned int);
84EXPORT_SYMBOL(__lshrdi3);
Chris Metcalf00dce03132011-02-28 15:51:25 -050085uint64_t __ashrdi3(uint64_t, unsigned int);
86EXPORT_SYMBOL(__ashrdi3);
87uint64_t __ashldi3(uint64_t, unsigned int);
88EXPORT_SYMBOL(__ashldi3);
Chris Metcalf3cb3f832013-06-15 16:47:47 -040089int __ffsdi2(uint64_t);
90EXPORT_SYMBOL(__ffsdi2);
Chris Metcalf867e3592010-05-28 23:09:12 -040091#endif