diff options
author | Youling Tang <tangyouling@loongson.cn> | 2022-12-10 17:39:48 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2022-12-14 03:36:11 +0300 |
commit | 508f28c67171e276356650f407dd87d42b6913ef (patch) | |
tree | ee0f73bff2f2b8efac297a7691851e83c605e381 /arch/loongarch/lib/copy_user.S | |
parent | 1a34e7f2fcbaaeb3c88858d2e4655bc93038ec9b (diff) | |
download | linux-508f28c67171e276356650f407dd87d42b6913ef.tar.xz |
LoongArch: Consolidate __ex_table construction
Consolidate all the __ex_table constuction code with a _ASM_EXTABLE or
_asm_extable helper.
There should be no functional change as a result of this patch.
Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/lib/copy_user.S')
-rw-r--r-- | arch/loongarch/lib/copy_user.S | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/loongarch/lib/copy_user.S b/arch/loongarch/lib/copy_user.S index 97d20327a69e..f8ace04586c2 100644 --- a/arch/loongarch/lib/copy_user.S +++ b/arch/loongarch/lib/copy_user.S @@ -5,6 +5,7 @@ #include <asm/asm.h> #include <asm/asmmacro.h> +#include <asm/asm-extable.h> #include <asm/export.h> #include <asm/regdef.h> @@ -15,9 +16,7 @@ jr ra .previous .endif - .section __ex_table, "a" - PTR \from\()b, \to\()b - .previous + _asm_extable \from\()b, \to\()b .endm /* |