LoongArch: Add la_abs macro implementation
authorYouling Tang <tangyouling@loongson.cn>
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)
commit396233c650084cb957eb6d87dd4abd3e56a7d499
tree8d69c7f5d7d141cf1855545f16cb5ab1b845bcfa
parent8cbd5ebfe241699288cb152081854414f6265718
LoongArch: Add la_abs macro implementation

Use the "la_abs macro" instead of the "la.abs pseudo instruction" to
prepare for the subsequent PIE kernel. When PIE is not enabled, la_abs
is equivalent to la.abs.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/asmmacro.h
arch/loongarch/include/asm/stackframe.h
arch/loongarch/kernel/genex.S
arch/loongarch/mm/tlbex.S