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, a1, \offset
18 .section __ex_table, "a"
19 PTR \from\()b, \to\()b
24 * unsigned long __clear_user(void *addr, size_t size)
29 SYM_FUNC_START(__clear_user)
41 SYM_FUNC_END(__clear_user)
43 EXPORT_SYMBOL(__clear_user)