mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/MpInitLib: Fix a bug that AP enters timer INT handler
When SourceLevelDebug is enabled, AP randomly executes the DXECORE timer handler logic. The root cause is the interrupts are not masked in AP wake up procedure. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jeff Fan <vanjeff_919@hotmail.com>
This commit is contained in:
parent
5f354f6a4a
commit
a2ea6894e6
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
CPU MP Initialize Library common functions.
|
CPU MP Initialize Library common functions.
|
||||||
|
|
||||||
Copyright (c) 2016 - 2017, Intel Corporation. All rights reserved.<BR>
|
Copyright (c) 2016 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||||
This program and the accompanying materials
|
This program and the accompanying materials
|
||||||
are licensed and made available under the terms and conditions of the BSD License
|
are licensed and made available under the terms and conditions of the BSD License
|
||||||
which accompanies this distribution. The full text of the license may be found at
|
which accompanies this distribution. The full text of the license may be found at
|
||||||
|
@ -582,6 +582,10 @@ ApWakeupFunction (
|
||||||
// We need to re-initialize them at here
|
// We need to re-initialize them at here
|
||||||
//
|
//
|
||||||
ProgramVirtualWireMode ();
|
ProgramVirtualWireMode ();
|
||||||
|
//
|
||||||
|
// Mask the LINT0 and LINT1 so that AP doesn't enter the system timer interrupt handler.
|
||||||
|
//
|
||||||
|
DisableLvtInterrupts ();
|
||||||
SyncLocalApicTimerSetting (CpuMpData);
|
SyncLocalApicTimerSetting (CpuMpData);
|
||||||
|
|
||||||
CurrentApicMode = GetApicMode ();
|
CurrentApicMode = GetApicMode ();
|
||||||
|
|
Loading…
Reference in New Issue