summaryrefslogtreecommitdiffstats
path: root/arch/loongarch/mm
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-02-25 15:52:56 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2023-02-25 22:12:16 +0800
commitf733f119e9b31088063652a7ad16963d85cb73dd (patch)
tree24074917ede441e0f79a841c9cd061e802f90625 /arch/loongarch/mm
parent41596803302d83a67a80dc1efef4e51ac46acabb (diff)
downloadlinux-stable-f733f119e9b31088063652a7ad16963d85cb73dd.tar.gz
linux-stable-f733f119e9b31088063652a7ad16963d85cb73dd.tar.bz2
linux-stable-f733f119e9b31088063652a7ad16963d85cb73dd.zip
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>
Diffstat (limited to 'arch/loongarch/mm')
-rw-r--r--arch/loongarch/mm/tlbex.S3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/loongarch/mm/tlbex.S b/arch/loongarch/mm/tlbex.S
index 58781c6e4191..3dd2a9615cd9 100644
--- a/arch/loongarch/mm/tlbex.S
+++ b/arch/loongarch/mm/tlbex.S
@@ -24,8 +24,7 @@
move a0, sp
REG_S a2, sp, PT_BVADDR
li.w a1, \write
- la.abs t0, do_page_fault
- jirl ra, t0, 0
+ bl do_page_fault
RESTORE_ALL_AND_RET
SYM_FUNC_END(tlb_do_page_fault_\write)
.endm