1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
7 #include <asm/asmmacro.h>
8 #include <asm/export.h>
9 #include <asm/regdef.h>
11 .macro fixup_ex from, to, offset, fix
14 \to: addi.d a0, a2, \offset
18 .section __ex_table, "a"
19 PTR \from\()b, \to\()b
24 * unsigned long __copy_user(void *to, const void *from, size_t n)
30 SYM_FUNC_START(__copy_user)
45 SYM_FUNC_END(__copy_user)
47 EXPORT_SYMBOL(__copy_user)