blob: 74a60c7e085ea40349336089889de2d52f9d142c [file] [log] [blame]
Chris Zankel5a0015d2005-06-23 22:01:16 -07001/*
2 * arch/xtensa/kernel/xtensa_ksyms.c
3 *
4 * Export Xtensa-specific functions for loadable modules.
5 *
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file "COPYING" in the main directory of this archive
8 * for more details.
9 *
10 * Copyright (C) 2001 - 2005 Tensilica Inc.
11 *
12 * Joe Taylor <joe@tensilica.com>
13 */
14
Chris Zankel5a0015d2005-06-23 22:01:16 -070015#include <linux/module.h>
16#include <linux/string.h>
17#include <linux/mm.h>
18#include <linux/interrupt.h>
19#include <asm/irq.h>
20#include <linux/in6.h>
Chris Zankel5a0015d2005-06-23 22:01:16 -070021
22#include <asm/uaccess.h>
23#include <asm/checksum.h>
24#include <asm/dma.h>
25#include <asm/io.h>
26#include <asm/page.h>
27#include <asm/pgalloc.h>
Guenter Roeck88723662013-08-27 21:06:37 -070028#include <asm/ftrace.h>
Chris Zankel5a0015d2005-06-23 22:01:16 -070029#ifdef CONFIG_BLK_DEV_FD
30#include <asm/floppy.h>
31#endif
32#ifdef CONFIG_NET
33#include <net/checksum.h>
34#endif /* CONFIG_NET */
35
36
37/*
38 * String functions
39 */
Chris Zankel5a0015d2005-06-23 22:01:16 -070040EXPORT_SYMBOL(memset);
41EXPORT_SYMBOL(memcpy);
42EXPORT_SYMBOL(memmove);
Max Filippovd3738f42012-09-17 05:44:56 +040043EXPORT_SYMBOL(__strncpy_user);
44EXPORT_SYMBOL(clear_page);
45EXPORT_SYMBOL(copy_page);
Chris Zankel5a0015d2005-06-23 22:01:16 -070046
Max Filippovd3738f42012-09-17 05:44:56 +040047EXPORT_SYMBOL(empty_zero_page);
Chris Zankel5a0015d2005-06-23 22:01:16 -070048
49/*
50 * gcc internal math functions
51 */
52extern long long __ashrdi3(long long, int);
53extern long long __ashldi3(long long, int);
54extern long long __lshrdi3(long long, int);
55extern int __divsi3(int, int);
56extern int __modsi3(int, int);
57extern long long __muldi3(long long, long long);
58extern int __mulsi3(int, int);
59extern unsigned int __udivsi3(unsigned int, unsigned int);
60extern unsigned int __umodsi3(unsigned int, unsigned int);
61extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
62extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
Max Filippovd3738f42012-09-17 05:44:56 +040063extern int __ucmpdi2(int, int);
Chris Zankel5a0015d2005-06-23 22:01:16 -070064
65EXPORT_SYMBOL(__ashldi3);
66EXPORT_SYMBOL(__ashrdi3);
67EXPORT_SYMBOL(__lshrdi3);
68EXPORT_SYMBOL(__divsi3);
69EXPORT_SYMBOL(__modsi3);
70EXPORT_SYMBOL(__muldi3);
71EXPORT_SYMBOL(__mulsi3);
72EXPORT_SYMBOL(__udivsi3);
73EXPORT_SYMBOL(__umodsi3);
74EXPORT_SYMBOL(__udivdi3);
75EXPORT_SYMBOL(__umoddi3);
Max Filippovd3738f42012-09-17 05:44:56 +040076EXPORT_SYMBOL(__ucmpdi2);
Max Filippov6907b452012-09-17 05:44:57 +040077
78void __xtensa_libgcc_window_spill(void)
79{
80 BUG();
81}
Max Filippovd3738f42012-09-17 05:44:56 +040082EXPORT_SYMBOL(__xtensa_libgcc_window_spill);
Chris Zankel5a0015d2005-06-23 22:01:16 -070083
Max Filippov6907b452012-09-17 05:44:57 +040084unsigned long __sync_fetch_and_and_4(unsigned long *p, unsigned long v)
85{
86 BUG();
87}
88EXPORT_SYMBOL(__sync_fetch_and_and_4);
89
90unsigned long __sync_fetch_and_or_4(unsigned long *p, unsigned long v)
91{
92 BUG();
93}
94EXPORT_SYMBOL(__sync_fetch_and_or_4);
95
Chris Zankel5a0015d2005-06-23 22:01:16 -070096#ifdef CONFIG_NET
97/*
98 * Networking support
99 */
Max Filippovd3738f42012-09-17 05:44:56 +0400100EXPORT_SYMBOL(csum_partial);
Chris Zankel5a0015d2005-06-23 22:01:16 -0700101EXPORT_SYMBOL(csum_partial_copy_generic);
102#endif /* CONFIG_NET */
103
104/*
105 * Architecture-specific symbols
106 */
107EXPORT_SYMBOL(__xtensa_copy_user);
108
109/*
110 * Kernel hacking ...
111 */
112
113#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
114// FIXME EXPORT_SYMBOL(screen_info);
115#endif
116
Chris Zankel5a0015d2005-06-23 22:01:16 -0700117EXPORT_SYMBOL(outsb);
118EXPORT_SYMBOL(outsw);
119EXPORT_SYMBOL(outsl);
120EXPORT_SYMBOL(insb);
121EXPORT_SYMBOL(insw);
122EXPORT_SYMBOL(insl);
Max Filippov74f5bf02013-02-25 19:01:33 +0400123
124extern long common_exception_return;
125extern long _spill_registers;
126EXPORT_SYMBOL(common_exception_return);
127EXPORT_SYMBOL(_spill_registers);
Max Filippov478ba612013-05-24 07:02:25 +0400128
129#ifdef CONFIG_FUNCTION_TRACER
130EXPORT_SYMBOL(_mcount);
131#endif