diff options
author | WANG Xuerui <git@xen0n.name> | 2022-07-26 18:57:18 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2022-07-29 13:22:32 +0300 |
commit | 57ce5d3eefacfaadfe2ed0a3a85713d1ae6287b9 (patch) | |
tree | 627915b42bd823231e06585855e74f4ccd6688cc /arch/loongarch/kernel/head.S | |
parent | 07b480695d24d1c9f27bb60fd4b980ae87e8bc1e (diff) | |
download | linux-57ce5d3eefacfaadfe2ed0a3a85713d1ae6287b9.tar.xz |
LoongArch: Use the "move" pseudo-instruction where applicable
Some of the assembly code in the LoongArch port likely originated
from a time when the assembler did not support pseudo-instructions like
"move" or "jr", so the desugared form was used and readability suffers
(to a minor degree) as a result.
As the upstream toolchain supports these pseudo-instructions from the
beginning, migrate the existing few usages to them for better
readability.
Signed-off-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/kernel/head.S')
-rw-r--r-- | arch/loongarch/kernel/head.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/kernel/head.S b/arch/loongarch/kernel/head.S index e553c5fc17da..fd6a62f17161 100644 --- a/arch/loongarch/kernel/head.S +++ b/arch/loongarch/kernel/head.S @@ -50,7 +50,7 @@ SYM_CODE_START(kernel_entry) # kernel entry point /* KSave3 used for percpu base, initialized as 0 */ csrwr zero, PERCPU_BASE_KS /* GPR21 used for percpu base (runtime), initialized as 0 */ - or u0, zero, zero + move u0, zero la tp, init_thread_union /* Set the SP after an empty pt_regs. */ |