]> git.proxmox.com Git - mirror_edk2.git/commit
UefiCpuPkg/MpInitLib: Add missing Guard page setup for APs
authorJian J Wang <jian.j.wang@intel.com>
Thu, 21 Dec 2017 01:25:51 +0000 (09:25 +0800)
committerStar Zeng <star.zeng@intel.com>
Fri, 22 Dec 2017 06:16:51 +0000 (14:16 +0800)
commit15720a6cde27343e732dbe81aaee1764e26d20e0
tree33c025c7992c677c1438b60b017ab8d04cea8e58
parent3d0ebaa8d88773a116bcbd840128ab25977ec174
UefiCpuPkg/MpInitLib: Add missing Guard page setup for APs

AP has its own stack for code execution. If PcdCpuStackGuard is enabled,
the page at the bottom of stack of AP will be disabled (NOT PRESENT) to
monitor the stack overflow issue. This requires PcdCpuApStackSize to be
set with value more than one page of memory.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Eric Dong <eric.dong@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Jian J Wang <jian.j.wang@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c