From bc518f81fd8c3b2f17220aded95acf8ab41cd65e Mon Sep 17 00:00:00 2001 From: Chao Li Date: Thu, 29 Aug 2024 15:54:58 +0800 Subject: [PATCH] OvmfPkg: Using the new name of LoongArch CSR 0x20 register Since the LoongArch SPEC has adjusted the CSR 0x20 register name and the MdePkg also added the new name, so enable it in OvmfPkg. Cc: Ard Biesheuvel Cc: Jiewen Yao Cc: Gerd Hoffmann Signed-off-by: Chao Li --- OvmfPkg/LoongArchVirt/Sec/LoongArch64/Start.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/LoongArchVirt/Sec/LoongArch64/Start.S b/OvmfPkg/LoongArchVirt/Sec/LoongArch64/Start.S index dd74c6b296..dd59821235 100644 --- a/OvmfPkg/LoongArchVirt/Sec/LoongArch64/Start.S +++ b/OvmfPkg/LoongArchVirt/Sec/LoongArch64/Start.S @@ -105,7 +105,7 @@ ASM_PFX(EnableIPI): # ) #**/ ASM_PFX(GetApicId): - csrrd $a0, LOONGARCH_CSR_CPUNUM + csrrd $a0, LOONGARCH_CSR_CPUID andi $a0, $a0, 0x3ff jirl $zero, $ra, 0 # End of GetApicId