LoongArch: Use la.pcrel instead of la.abs when it's trivially possible
authorXi Ruoyao <xry111@xry111.site>
Sat, 25 Feb 2023 07:52:56 +0000 (15:52 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Sat, 25 Feb 2023 14:12:16 +0000 (22:12 +0800)
commitf733f119e9b31088063652a7ad16963d85cb73dd
tree24074917ede441e0f79a841c9cd061e802f90625
parent41596803302d83a67a80dc1efef4e51ac46acabb
LoongArch: Use la.pcrel instead of la.abs when it's trivially possible

Let's start to kill la.abs in preparation for the subsequent support of
the PIE kernel.

BTW, Re-tab the indention in arch/loongarch/kernel/entry.S for alignment.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/stackframe.h
arch/loongarch/include/asm/uaccess.h
arch/loongarch/kernel/entry.S
arch/loongarch/kernel/head.S
arch/loongarch/mm/tlbex.S