Chris Metcalf | 867e359 | 2010-05-28 23:09:12 -0400 | [diff] [blame] | 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> |
| 21 | EXPORT_SYMBOL(__get_user_1); |
| 22 | EXPORT_SYMBOL(__get_user_2); |
| 23 | EXPORT_SYMBOL(__get_user_4); |
Chris Metcalf | 0707ad3 | 2010-06-25 17:04:17 -0400 | [diff] [blame^] | 24 | EXPORT_SYMBOL(__get_user_8); |
Chris Metcalf | 867e359 | 2010-05-28 23:09:12 -0400 | [diff] [blame] | 25 | EXPORT_SYMBOL(__put_user_1); |
| 26 | EXPORT_SYMBOL(__put_user_2); |
| 27 | EXPORT_SYMBOL(__put_user_4); |
| 28 | EXPORT_SYMBOL(__put_user_8); |
| 29 | EXPORT_SYMBOL(strnlen_user_asm); |
| 30 | EXPORT_SYMBOL(strncpy_from_user_asm); |
| 31 | EXPORT_SYMBOL(clear_user_asm); |
| 32 | |
| 33 | /* arch/tile/kernel/entry.S */ |
| 34 | #include <linux/kernel.h> |
| 35 | #include <asm/processor.h> |
| 36 | EXPORT_SYMBOL(current_text_addr); |
| 37 | EXPORT_SYMBOL(dump_stack); |
| 38 | |
| 39 | /* arch/tile/lib/__memcpy.S */ |
| 40 | /* NOTE: on TILE64, these symbols appear in arch/tile/lib/memcpy_tile64.c */ |
| 41 | EXPORT_SYMBOL(memcpy); |
| 42 | EXPORT_SYMBOL(__copy_to_user_inatomic); |
| 43 | EXPORT_SYMBOL(__copy_from_user_inatomic); |
| 44 | EXPORT_SYMBOL(__copy_from_user_zeroing); |
| 45 | |
| 46 | /* hypervisor glue */ |
| 47 | #include <hv/hypervisor.h> |
| 48 | EXPORT_SYMBOL(hv_dev_open); |
| 49 | EXPORT_SYMBOL(hv_dev_pread); |
| 50 | EXPORT_SYMBOL(hv_dev_pwrite); |
| 51 | EXPORT_SYMBOL(hv_dev_close); |
| 52 | |
| 53 | /* -ltile-cc */ |
| 54 | uint32_t __udivsi3(uint32_t dividend, uint32_t divisor); |
| 55 | EXPORT_SYMBOL(__udivsi3); |
| 56 | int32_t __divsi3(int32_t dividend, int32_t divisor); |
| 57 | EXPORT_SYMBOL(__divsi3); |
| 58 | uint64_t __udivdi3(uint64_t dividend, uint64_t divisor); |
| 59 | EXPORT_SYMBOL(__udivdi3); |
| 60 | int64_t __divdi3(int64_t dividend, int64_t divisor); |
| 61 | EXPORT_SYMBOL(__divdi3); |
| 62 | uint32_t __umodsi3(uint32_t dividend, uint32_t divisor); |
| 63 | EXPORT_SYMBOL(__umodsi3); |
| 64 | int32_t __modsi3(int32_t dividend, int32_t divisor); |
| 65 | EXPORT_SYMBOL(__modsi3); |
| 66 | uint64_t __umoddi3(uint64_t dividend, uint64_t divisor); |
| 67 | EXPORT_SYMBOL(__umoddi3); |
| 68 | int64_t __moddi3(int64_t dividend, int64_t divisor); |
| 69 | EXPORT_SYMBOL(__moddi3); |
| 70 | #ifndef __tilegx__ |
| 71 | uint64_t __ll_mul(uint64_t n0, uint64_t n1); |
| 72 | EXPORT_SYMBOL(__ll_mul); |
| 73 | #endif |
| 74 | #ifndef __tilegx__ |
| 75 | int64_t __muldi3(int64_t, int64_t); |
| 76 | EXPORT_SYMBOL(__muldi3); |
| 77 | uint64_t __lshrdi3(uint64_t, unsigned int); |
| 78 | EXPORT_SYMBOL(__lshrdi3); |
| 79 | #endif |