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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ GetApicId (
|
||||
{
|
||||
UINTN CpuNum;
|
||||
|
||||
CpuNum = CsrRead (LOONGARCH_CSR_CPUNUM);
|
||||
CpuNum = CsrRead (LOONGARCH_CSR_CPUID);
|
||||
|
||||
return CpuNum & 0x3ff;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user