UefiCpuPkg: 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 UefiCpuPkg.

Cc: Ray Ni <ray.ni@intel.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiaxin Wu <jiaxin.wu@intel.com>
Signed-off-by: Chao Li <lichao@loongson.cn>
This commit is contained in:
Chao Li 2024-08-29 15:51:31 +08:00 committed by mergify[bot]
parent a066ca16d3
commit 2fe24171ac
2 changed files with 2 additions and 2 deletions

View File

@ -260,7 +260,7 @@ IpiInterruptHandler (
//
// Set $a0 as APIC ID and $a1 as parameter value.
//
SystemContext.SystemContextLoongArch64->R4 = CsrRead (LOONGARCH_CSR_CPUNUM);
SystemContext.SystemContextLoongArch64->R4 = CsrRead (LOONGARCH_CSR_CPUID);
SystemContext.SystemContextLoongArch64->R5 = Parameter;
}

View File

@ -60,7 +60,7 @@ GetApicId (
{
UINTN CpuNum;
CpuNum = CsrRead (LOONGARCH_CSR_CPUNUM);
CpuNum = CsrRead (LOONGARCH_CSR_CPUID);
return CpuNum & 0x3ff;
}