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 <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Chao Li <lichao@loongson.cn>
This commit is contained in:
Chao Li 2024-08-29 15:54:58 +08:00 committed by mergify[bot]
parent 2fe24171ac
commit bc518f81fd

View File

@ -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