summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuMpPei/CpuMpPei.inf
diff options
context:
space:
mode:
authorRay Ni <ray.ni@intel.com>2021-01-22 10:45:02 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2021-01-22 03:23:53 +0000
commit3b769c5110384fb33bcfeddced80f721ec7838cc (patch)
tree1f9ba238dde98a79bc027e2dfaf73dff75e9ee6d /UefiCpuPkg/CpuMpPei/CpuMpPei.inf
parent6c5801be6ef36e35f0b4ff906a4c99d68ca6f69a (diff)
downloadedk2-3b769c5110384fb33bcfeddced80f721ec7838cc.tar.gz
UefiCpuPkg/CpuMp: Fix hang when StackGuard is enabled in 16-core cpu
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3167 When StackGuard is enabled, the CpuMp driver allocates known good stacks for all CPUs for DF# and PF# exceptions. It uses AllocatePool to do so. The size needed equals to 64KB = StackSize (2K) * ExceptionNumber (2) * NumberOfProcessors (16) However, AllocatePool max allocation size is less than 64K. To fix the issue, AllocatePages() is used. Signed-off-by: Ray Ni <ray.ni@intel.com> Reviewed-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Cc: Rahul Kumar <rahul1.kumar@intel.com>
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/CpuMpPei.inf')
-rw-r--r--UefiCpuPkg/CpuMpPei/CpuMpPei.inf3
1 files changed, 2 insertions, 1 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.inf b/UefiCpuPkg/CpuMpPei/CpuMpPei.inf
index 7e511325d8..ba829d816e 100644
--- a/UefiCpuPkg/CpuMpPei/CpuMpPei.inf
+++ b/UefiCpuPkg/CpuMpPei/CpuMpPei.inf
@@ -1,7 +1,7 @@
## @file
# CPU driver installs CPU PI Multi-processor PPI.
#
-# Copyright (c) 2015 - 2019, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2015 - 2021, Intel Corporation. All rights reserved.<BR>
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
@@ -45,6 +45,7 @@
MpInitLib
BaseMemoryLib
CpuLib
+ MemoryAllocationLib
[Guids]
gEdkiiMigratedFvInfoGuid ## SOMETIMES_CONSUMES ## HOB