]> git.proxmox.com Git - mirror_edk2.git/commitdiff
UefiCpuPkg: Move ProgramVirtualWireMode() to MpInitLib
authorJeff Fan <jeff.fan@intel.com>
Fri, 21 Apr 2017 03:21:00 +0000 (11:21 +0800)
committerJeff Fan <jeff.fan@intel.com>
Wed, 26 Apr 2017 00:55:45 +0000 (08:55 +0800)
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>
UefiCpuPkg/CpuDxe/CpuDxe.c
UefiCpuPkg/Library/MpInitLib/MpLib.c

index 4a5e282741bc6d9ea8336e5e60621ff9099ee47a..86806568a98b660cab2ddc9142f012ac4aac2073 100644 (file)
@@ -1135,11 +1135,6 @@ InitializeCpu (
   //\r
   InitInterruptDescriptorTable ();\r
 \r
-  //\r
-  // Enable the local APIC for Virtual Wire Mode.\r
-  //\r
-  ProgramVirtualWireMode ();\r
-\r
   //\r
   // Install CPU Architectural Protocol\r
   //\r
index 03d6c2d89e007de6bd13b7bdf5819b11fae86b77..e5e211de8da7c973b76f637ee3ddfff9c5ececbc 100644 (file)
@@ -1364,6 +1364,10 @@ MpInitLibInitialize (
   // Store BSP's MTRR setting\r
   //\r
   MtrrGetAllMtrrs (&CpuMpData->MtrrTable);\r
+  //\r
+  // Enable the local APIC for Virtual Wire Mode.\r
+  //\r
+  ProgramVirtualWireMode ();\r
 \r
   if (OldCpuMpData == NULL) {\r
     if (MaxLogicalProcessorNumber > 1) {\r