Revision: 18380
          http://sourceforge.net/p/edk2/code/18380
Author:   hwu1225
Date:     2015-09-02 03:15:20 +0000 (Wed, 02 Sep 2015)
Log Message:
-----------
UefiCpuPkg/CpuMpPei: Update the old/new BSP state in SwitchBsp()

(Sync patch r18372 from main trunk.)

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <[email protected]>
Reviewed-by: Feng Tian <[email protected]>

Revision Links:
--------------
    http://sourceforge.net/p/edk2/code/18372

Modified Paths:
--------------
    branches/UDK2015/UefiCpuPkg/CpuMpPei/PeiMpServices.c

Modified: branches/UDK2015/UefiCpuPkg/CpuMpPei/PeiMpServices.c
===================================================================
--- branches/UDK2015/UefiCpuPkg/CpuMpPei/PeiMpServices.c        2015-09-01 
17:29:23 UTC (rev 18379)
+++ branches/UDK2015/UefiCpuPkg/CpuMpPei/PeiMpServices.c        2015-09-02 
03:15:20 UTC (rev 18380)
@@ -804,6 +804,16 @@
   ApicBaseMsr.Uint64 = AsmReadMsr64 (MSR_IA32_APIC_BASE_ADDRESS);
   ApicBaseMsr.Bits.Bsp = 1;
   AsmWriteMsr64 (MSR_IA32_APIC_BASE_ADDRESS, ApicBaseMsr.Uint64);
+  //
+  // Set old BSP enable state
+  //
+  if (!EnableOldBSP) {
+    PeiCpuMpData->CpuData[PeiCpuMpData->BspNumber].State = CpuStateDisabled;
+  }
+  //
+  // Save new BSP number
+  //
+  PeiCpuMpData->BspNumber = (UINT32) ProcessorNumber;
 
   return EFI_SUCCESS;
 }


------------------------------------------------------------------------------
Monitor Your Dynamic Infrastructure at Any Scale With Datadog!
Get real-time metrics from all of your servers, apps and tools
in one place.
SourceForge users - Click here to start your Free Trial of Datadog now!
http://pubads.g.doubleclick.net/gampad/clk?id=241902991&iu=/4140
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to