UefiCpuPkg/MpInitLib: Fix timer interrupt is disabled after SwitchBSP
Commits a2ea6894e6
* UefiCpuPkg/MpInitLib: Fix a bug that AP enters timer INT handler
masked the interrupts in AP.
But it didn't unmask the interrupt in new BSP when Switch BSP
happens.
The patch fixed this issue.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Jeff Fan <vanjeff_919@hotmail.com>
Cc: Eric Dong <eric.dong@intel.com>
This commit is contained in:
@@ -1771,6 +1771,7 @@ SwitchBSPWorker (
|
|||||||
ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE);
|
ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE);
|
||||||
ApicBaseMsr.Bits.BSP = 1;
|
ApicBaseMsr.Bits.BSP = 1;
|
||||||
AsmWriteMsr64 (MSR_IA32_APIC_BASE, ApicBaseMsr.Uint64);
|
AsmWriteMsr64 (MSR_IA32_APIC_BASE, ApicBaseMsr.Uint64);
|
||||||
|
ProgramVirtualWireMode ();
|
||||||
|
|
||||||
//
|
//
|
||||||
// Wait for old BSP finished AP task
|
// Wait for old BSP finished AP task
|
||||||
|
Reference in New Issue
Block a user