clear_user.S (03c11eb3b16dc0058589751dfd91f254be2be613) clear_user.S (cb8a2ef0848ca80d67d6d56e2df757cfdf6b3355)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5
6#include <linux/export.h>
7#include <asm/alternative-asm.h>
8#include <asm/asm.h>
9#include <asm/asmmacro.h>
10#include <asm/asm-extable.h>
11#include <asm/cpu.h>
12#include <asm/regdef.h>
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited
4 */
5
6#include <linux/export.h>
7#include <asm/alternative-asm.h>
8#include <asm/asm.h>
9#include <asm/asmmacro.h>
10#include <asm/asm-extable.h>
11#include <asm/cpu.h>
12#include <asm/regdef.h>
13#include <asm/unwind_hints.h>
13
14SYM_FUNC_START(__clear_user)
15 /*
16 * Some CPUs support hardware unaligned access
17 */
18 ALTERNATIVE "b __clear_user_generic", \
19 "b __clear_user_fast", CPU_FEATURE_UAL
20SYM_FUNC_END(__clear_user)

--- 178 unchanged lines hidden (view full) ---

199 _asm_extable 23b, .Lsmall_fixup
200 _asm_extable 24b, .Lsmall_fixup
201 _asm_extable 25b, .Lsmall_fixup
202 _asm_extable 26b, .Lsmall_fixup
203 _asm_extable 27b, .Lsmall_fixup
204 _asm_extable 28b, .Lsmall_fixup
205 _asm_extable 29b, .Lexit
206SYM_FUNC_END(__clear_user_fast)
14
15SYM_FUNC_START(__clear_user)
16 /*
17 * Some CPUs support hardware unaligned access
18 */
19 ALTERNATIVE "b __clear_user_generic", \
20 "b __clear_user_fast", CPU_FEATURE_UAL
21SYM_FUNC_END(__clear_user)

--- 178 unchanged lines hidden (view full) ---

200 _asm_extable 23b, .Lsmall_fixup
201 _asm_extable 24b, .Lsmall_fixup
202 _asm_extable 25b, .Lsmall_fixup
203 _asm_extable 26b, .Lsmall_fixup
204 _asm_extable 27b, .Lsmall_fixup
205 _asm_extable 28b, .Lsmall_fixup
206 _asm_extable 29b, .Lexit
207SYM_FUNC_END(__clear_user_fast)
208
209STACK_FRAME_NON_STANDARD __clear_user_fast