mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
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:
parent
2fe24171ac
commit
bc518f81fd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user