mirror of https://github.com/acidanthera/audk.git
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:
parent
a066ca16d3
commit
2fe24171ac
|
@ -260,7 +260,7 @@ IpiInterruptHandler (
|
||||||
//
|
//
|
||||||
// Set $a0 as APIC ID and $a1 as parameter value.
|
// 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;
|
SystemContext.SystemContextLoongArch64->R5 = Parameter;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,7 +60,7 @@ GetApicId (
|
||||||
{
|
{
|
||||||
UINTN CpuNum;
|
UINTN CpuNum;
|
||||||
|
|
||||||
CpuNum = CsrRead (LOONGARCH_CSR_CPUNUM);
|
CpuNum = CsrRead (LOONGARCH_CSR_CPUID);
|
||||||
|
|
||||||
return CpuNum & 0x3ff;
|
return CpuNum & 0x3ff;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue