mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg: Move ProgramVirtualWireMode() to MpInitLib
In PEI phase, BSP did not program vitural wired mode while APs did. Move program virtual wired mode from CpuDxe to MpInitLib, thus it could benefit on both CpuDxe and CpuMpPei. https://bugzilla.tianocore.org/show_bug.cgi?id=496 Cc: Feng Tian <feng.tian@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
parent
c934a0a581
commit
9d64a9fd9e
|
@ -1135,11 +1135,6 @@ InitializeCpu (
|
||||||
//
|
//
|
||||||
InitInterruptDescriptorTable ();
|
InitInterruptDescriptorTable ();
|
||||||
|
|
||||||
//
|
|
||||||
// Enable the local APIC for Virtual Wire Mode.
|
|
||||||
//
|
|
||||||
ProgramVirtualWireMode ();
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Install CPU Architectural Protocol
|
// Install CPU Architectural Protocol
|
||||||
//
|
//
|
||||||
|
|
|
@ -1364,6 +1364,10 @@ MpInitLibInitialize (
|
||||||
// Store BSP's MTRR setting
|
// Store BSP's MTRR setting
|
||||||
//
|
//
|
||||||
MtrrGetAllMtrrs (&CpuMpData->MtrrTable);
|
MtrrGetAllMtrrs (&CpuMpData->MtrrTable);
|
||||||
|
//
|
||||||
|
// Enable the local APIC for Virtual Wire Mode.
|
||||||
|
//
|
||||||
|
ProgramVirtualWireMode ();
|
||||||
|
|
||||||
if (OldCpuMpData == NULL) {
|
if (OldCpuMpData == NULL) {
|
||||||
if (MaxLogicalProcessorNumber > 1) {
|
if (MaxLogicalProcessorNumber > 1) {
|
||||||
|
|
Loading…
Reference in New Issue