]> git.baikalelectronics.ru Git - kernel.git/commit
LoongArch: Use ABI names of registers where appropriate
authorWANG Xuerui <git@xen0n.name>
Tue, 26 Jul 2022 15:57:16 +0000 (23:57 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 29 Jul 2022 10:22:32 +0000 (18:22 +0800)
commitac5fb89b7460c8fd2f868c4d73ffb746c8a7a6e4
tree5bbe5881044a3dcb4ad37fc59a49f9c9e815c3db
parent0a4b4ae17c65fda634898caa9038ed14910ba2e2
LoongArch: Use ABI names of registers where appropriate

Some of the assembly in the LoongArch port seem to come from a
prehistoric time, when the assembler didn't even have support for the
ABI names we all come to know and love, thus used raw register numbers
which hampered readability.

The usages are found with a regex match inside arch/loongarch, then
manually adjusted for those non-definitions.

Signed-off-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/barrier.h
arch/loongarch/include/asm/loongson.h
arch/loongarch/include/asm/stacktrace.h
arch/loongarch/include/asm/thread_info.h
arch/loongarch/include/asm/uaccess.h
arch/loongarch/mm/page.S
arch/loongarch/mm/tlbex.S