LoongArch: extable: Also recognize ABI names of registers
authorWANG Rui <wangrui@loongson.cn>
Thu, 29 Jun 2023 12:58:43 +0000 (20:58 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 29 Jun 2023 12:58:43 +0000 (20:58 +0800)
commit24da0249d950bbf97a8513daf414b48548b8bbe9
tree6bbe6a24273682fee1311244547aadf3a4e76b8b
parent414cefc798a30895d61e9d5b010fcf350af782d6
LoongArch: extable: Also recognize ABI names of registers

When the kernel is compiled with LLVM, the register names being handled
during exception fixup building are ABI names instead of bare $rNN
style. Add mapping for the ABI names for LLVM compatibility.

Signed-off-by: WANG Rui <wangrui@loongson.cn>
Signed-off-by: WANG Xuerui <git@xen0n.name>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/include/asm/gpr-num.h