audk/UefiCpuPkg/Library/MpInitLib
Jian J Wang bc2288f59b UefiCpuPkg/MpInitLib: put mReservedApLoopFunc in executable memory
if PcdDxeNxMemoryProtectionPolicy is enabled for EfiReservedMemoryType
of memory, #PF will be triggered for each APs after ExitBootServices
in SCRT test. The root cause is that AP wakeup code executed at that
time is stored in memory of type EfiReservedMemoryType (referenced by
global mReservedApLoopFunc), which is marked as non-executable.

This patch fixes this issue by setting memory of mReservedApLoopFunc to
be executable immediately after allocation.

Cc: Ruiyu Ni <ruiyu.ni@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: Laszlo Ersek <lersek@redhat.com>
2018-03-08 17:07:14 +08:00
..
Ia32 UefiCpuPkg/MpInitLib: split wake up buffer into two parts 2018-01-18 17:03:22 +08:00
X64 UefiCpuPkg/MpInitLib: split wake up buffer into two parts 2018-01-18 17:03:22 +08:00
DxeMpInitLib.inf UefiCpuPkg/MpInitLib: Add missing Guard page setup for APs 2017-12-22 14:16:51 +08:00
DxeMpInitLib.uni
DxeMpLib.c UefiCpuPkg/MpInitLib: put mReservedApLoopFunc in executable memory 2018-03-08 17:07:14 +08:00
Microcode.c UefiCpuPkg/MpInitLib: Avoid call PcdGet* in Ap & Bsp. 2017-10-20 10:30:46 +08:00
MpLib.c UefiCpuPkg/MpInitLib: force flushing TLB for AP in mwait loop mode 2018-01-29 09:37:41 +08:00
MpLib.h UefiCpuPkg/MpInitLib: fix issue in wakeup buffer initialization 2018-01-25 10:24:21 +08:00
PeiMpInitLib.inf UefiCpuPkg/MpInitLib: needn't to allocate AP reset vector 2017-04-26 08:55:44 +08:00
PeiMpInitLib.uni
PeiMpLib.c UefiCpuPkg/PeiMpLib: Fix a system hang-in-pei issue. 2018-01-24 11:07:22 +08:00