Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0-or-later |
Jonas Bonn | 6162576 | 2011-06-04 22:45:16 +0300 | [diff] [blame] | 2 | /* |
| 3 | * OpenRISC or32_ksyms.c |
| 4 | * |
| 5 | * Linux architectural port borrowing liberally from similar works of |
| 6 | * others. All original copyrights apply as per the original source |
| 7 | * declaration. |
| 8 | * |
| 9 | * Modifications for the OpenRISC architecture: |
| 10 | * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com> |
| 11 | * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> |
Jonas Bonn | 6162576 | 2011-06-04 22:45:16 +0300 | [diff] [blame] | 12 | */ |
| 13 | |
Stafford Horne | 1938852 | 2017-03-14 22:54:22 +0900 | [diff] [blame] | 14 | #include <linux/export.h> |
Jonas Bonn | 6162576 | 2011-06-04 22:45:16 +0300 | [diff] [blame] | 15 | #include <linux/elfcore.h> |
| 16 | #include <linux/sched.h> |
| 17 | #include <linux/in6.h> |
| 18 | #include <linux/interrupt.h> |
| 19 | #include <linux/vmalloc.h> |
| 20 | #include <linux/semaphore.h> |
Mike Rapoport | 65fddcf | 2020-06-08 21:32:42 -0700 | [diff] [blame] | 21 | #include <linux/pgtable.h> |
Jonas Bonn | 6162576 | 2011-06-04 22:45:16 +0300 | [diff] [blame] | 22 | |
| 23 | #include <asm/processor.h> |
Linus Torvalds | 7c0f6ba | 2016-12-24 11:46:01 -0800 | [diff] [blame] | 24 | #include <linux/uaccess.h> |
Jonas Bonn | 6162576 | 2011-06-04 22:45:16 +0300 | [diff] [blame] | 25 | #include <asm/checksum.h> |
| 26 | #include <asm/io.h> |
| 27 | #include <asm/hardirq.h> |
| 28 | #include <asm/delay.h> |
Jonas Bonn | 6162576 | 2011-06-04 22:45:16 +0300 | [diff] [blame] | 29 | |
| 30 | #define DECLARE_EXPORT(name) extern void name(void); EXPORT_SYMBOL(name) |
| 31 | |
| 32 | /* compiler generated symbols */ |
| 33 | DECLARE_EXPORT(__udivsi3); |
| 34 | DECLARE_EXPORT(__divsi3); |
| 35 | DECLARE_EXPORT(__umodsi3); |
| 36 | DECLARE_EXPORT(__modsi3); |
| 37 | DECLARE_EXPORT(__muldi3); |
| 38 | DECLARE_EXPORT(__ashrdi3); |
| 39 | DECLARE_EXPORT(__ashldi3); |
| 40 | DECLARE_EXPORT(__lshrdi3); |
Stafford Horne | 363dad5 | 2017-03-14 22:52:49 +0900 | [diff] [blame] | 41 | DECLARE_EXPORT(__ucmpdi2); |
Jonas Bonn | 6162576 | 2011-06-04 22:45:16 +0300 | [diff] [blame] | 42 | |
Stafford Horne | 363dad5 | 2017-03-14 22:52:49 +0900 | [diff] [blame] | 43 | EXPORT_SYMBOL(empty_zero_page); |
Jonas Bonn | 6162576 | 2011-06-04 22:45:16 +0300 | [diff] [blame] | 44 | EXPORT_SYMBOL(__copy_tofrom_user); |
Stafford Horne | 363dad5 | 2017-03-14 22:52:49 +0900 | [diff] [blame] | 45 | EXPORT_SYMBOL(__clear_user); |
Olof Kindgren | d857a1e | 2015-02-06 13:41:51 +0100 | [diff] [blame] | 46 | EXPORT_SYMBOL(memset); |