Cc: Michael Kinney <michael.d.kinney@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Feng Tian <feng.tian@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>
IN CONST EFI_PEI_SERVICES **PeiServices\r
)\r
{\r
IN CONST EFI_PEI_SERVICES **PeiServices\r
)\r
{\r
- EFI_STATUS Status;\r
- PEI_CPU_MP_DATA *PeiCpuMpData;\r
+ EFI_STATUS Status;\r
+ PEI_CPU_MP_DATA *PeiCpuMpData;\r
+ EFI_VECTOR_HANDOFF_INFO *VectorInfo;\r
+ EFI_PEI_VECTOR_HANDOFF_INFO_PPI *VectorHandoffInfoPpi;\r
\r
//\r
// Load new GDT table on BSP\r
//\r
AsmInitializeGdt (&mGdt);\r
//\r
\r
//\r
// Load new GDT table on BSP\r
//\r
AsmInitializeGdt (&mGdt);\r
//\r
+ // Get Vector Hand-off Info PPI\r
+ //\r
+ VectorInfo = NULL;\r
+ Status = PeiServicesLocatePpi (\r
+ &gEfiVectorHandoffInfoPpiGuid,\r
+ 0,\r
+ NULL,\r
+ (VOID **)&VectorHandoffInfoPpi\r
+ );\r
+ if (Status == EFI_SUCCESS) {\r
+ VectorInfo = VectorHandoffInfoPpi->Info;\r
+ }\r
+ Status = InitializeCpuExceptionHandlers (VectorInfo);\r
+ ASSERT_EFI_ERROR (Status);\r
+ //\r
// Get wakeup buffer and copy AP reset code in it\r
//\r
PeiCpuMpData = PrepareAPStartupVector ();\r
// Get wakeup buffer and copy AP reset code in it\r
//\r
PeiCpuMpData = PrepareAPStartupVector ();\r
/** @file\r
Definitions to install Multiple Processor PPI.\r
\r
/** @file\r
Definitions to install Multiple Processor PPI.\r
\r
- Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
This program and the accompanying materials\r
are licensed and made available under the terms and conditions of the BSD License\r
which accompanies this distribution. The full text of the license may be found at\r
#include <Ppi/SecPlatformInformation.h>\r
#include <Ppi/SecPlatformInformation2.h>\r
#include <Ppi/EndOfPeiPhase.h>\r
#include <Ppi/SecPlatformInformation.h>\r
#include <Ppi/SecPlatformInformation2.h>\r
#include <Ppi/EndOfPeiPhase.h>\r
+#include <Ppi/VectorHandoffInfo.h>\r
\r
#include <Register/Cpuid.h>\r
#include <Register/LocalApic.h>\r
\r
#include <Register/Cpuid.h>\r
#include <Register/LocalApic.h>\r
#include <Library/TimerLib.h>\r
#include <Library/UefiCpuLib.h>\r
#include <Library/CpuLib.h>\r
#include <Library/TimerLib.h>\r
#include <Library/UefiCpuLib.h>\r
#include <Library/CpuLib.h>\r
+#include <Library/CpuExceptionHandlerLib.h>\r
\r
#include "Microcode.h"\r
\r
\r
#include "Microcode.h"\r
\r
## @file\r
# CPU driver installs CPU PI Multi-processor PPI.\r
#\r
## @file\r
# CPU driver installs CPU PI Multi-processor PPI.\r
#\r
-# Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.<BR>\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
# This program and the accompanying materials\r
# are licensed and made available under the terms and conditions of the BSD License\r
# which accompanies this distribution. The full text of the license may be found at\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
\r
[Packages]\r
MdePkg/MdePkg.dec\r
+ MdeModulePkg/MdeModulePkg.dec\r
UefiCpuPkg/UefiCpuPkg.dec\r
\r
[LibraryClasses]\r
UefiCpuPkg/UefiCpuPkg.dec\r
\r
[LibraryClasses]\r
TimerLib\r
UefiCpuLib\r
CpuLib\r
TimerLib\r
UefiCpuLib\r
CpuLib\r
+ CpuExceptionHandlerLib\r
\r
[Ppis]\r
gEfiPeiMpServicesPpiGuid ## PRODUCES\r
\r
[Ppis]\r
gEfiPeiMpServicesPpiGuid ## PRODUCES\r
## SOMETIMES_CONSUMES\r
## SOMETIMES_PRODUCES\r
gEfiSecPlatformInformation2PpiGuid\r
## SOMETIMES_CONSUMES\r
## SOMETIMES_PRODUCES\r
gEfiSecPlatformInformation2PpiGuid\r
+ gEfiVectorHandoffInfoPpiGuid ## SOMETIMES_CONSUMES\r
\r
[Pcd]\r
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## CONSUMES\r
\r
[Pcd]\r
gUefiCpuPkgTokenSpaceGuid.PcdCpuMaxLogicalProcessorNumber ## CONSUMES\r