/** @file\r
CPU PEI Module installs CPU Multiple Processor PPI.\r
\r
- Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
ExceptionNumber = FixedPcdGetSize (PcdCpuStackSwitchExceptionList);\r
NewStackSize = FixedPcdGet32 (PcdCpuKnownGoodStackSize) * ExceptionNumber;\r
\r
- Status = PeiServicesAllocatePool (\r
- NewStackSize * NumberOfProcessors,\r
- (VOID **)&StackTop\r
- );\r
+ StackTop = AllocatePages (EFI_SIZE_TO_PAGES (NewStackSize * NumberOfProcessors));\r
ASSERT(StackTop != NULL);\r
- if (EFI_ERROR (Status)) {\r
- ASSERT_EFI_ERROR (Status);\r
+ if (StackTop == NULL) {\r
return;\r
}\r
StackTop += NewStackSize * NumberOfProcessors;\r
/** @file\r
Definitions to install Multiple Processor PPI.\r
\r
- Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>\r
+ Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>\r
SPDX-License-Identifier: BSD-2-Clause-Patent\r
\r
**/\r
#include <Library/CpuExceptionHandlerLib.h>\r
#include <Library/MpInitLib.h>\r
#include <Library/BaseMemoryLib.h>\r
+#include <Library/MemoryAllocationLib.h>\r
\r
extern EFI_PEI_PPI_DESCRIPTOR mPeiCpuMpPpiDesc;\r
\r
## @file\r
# CPU driver installs CPU PI Multi-processor PPI.\r
#\r
-# Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>\r
+# Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>\r
# SPDX-License-Identifier: BSD-2-Clause-Patent\r
#\r
##\r
MpInitLib\r
BaseMemoryLib\r
CpuLib\r
+ MemoryAllocationLib\r
\r
[Guids]\r
gEdkiiMigratedFvInfoGuid ## SOMETIMES_CONSUMES ## HOB\r