audk/UefiCpuPkg/Library/CpuExceptionHandlerLib
Jian J Wang fceafda518 UefiCpuPkg/CpuExceptionHandlerLib: alloc code memory for exception handlers
If PcdDxeNxMemoryProtectionPolicy is set to enable protection for memory
of EfiBootServicesData, EfiConventionalMemory, the BIOS will reset after
timer initialized and started.

The root cause is that the memory used to hold the exception and interrupt
handler is allocated with type of EfiBootServicesData and marked as
non-executable due to NX feature enabled. This patch fixes it by allocating
EfiBootServicesCode type of memory for those handlers instead.

Cc: Jiewen Yao <jiewen.yao@intel.com>
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: Eric Dong <eric.dong@intel.com>
2018-01-18 17:03:23 +08:00
..
Ia32 UefiCpuPkg CpuExceptionHandlerLib: Enhance DumpModuleImageInfo() 2018-01-02 09:35:48 +08:00
X64 UefiCpuPkg: Update CpuExceptionHandlerLib pass XCODE5 tool chain 2018-01-16 23:42:48 +08:00
CpuExceptionCommon.c UefiCpuPkg CpuExceptionHandlerLib: Enhance DumpModuleImageInfo() 2018-01-02 09:35:48 +08:00
CpuExceptionCommon.h UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support 2017-12-08 14:38:48 +08:00
DxeCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support 2017-12-08 14:38:48 +08:00
DxeCpuExceptionHandlerLib.uni UefiCpuPkg/CpuExceptionHandlerLib: Trim white space at end of line 2017-04-07 10:06:37 +08:00
DxeException.c UefiCpuPkg/CpuExceptionHandlerLib: alloc code memory for exception handlers 2018-01-18 17:03:23 +08:00
PeiCpuException.c UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support 2017-12-08 14:38:48 +08:00
PeiCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support 2017-12-08 14:38:48 +08:00
PeiCpuExceptionHandlerLib.uni UefiCpuPkg/CpuExceptionHandlerLib: Trim white space at end of line 2017-04-07 10:06:37 +08:00
PeiDxeSmmCpuException.c UefiCpuPkg/CpuExceptionHandlerLib: Trim white space at end of line 2017-04-07 10:06:37 +08:00
SecPeiCpuException.c UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support 2017-12-08 14:38:48 +08:00
SecPeiCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support 2017-12-08 14:38:48 +08:00
SecPeiCpuExceptionHandlerLib.uni UefiCpuPkg/CpuExceptionHandlerLib: Trim white space at end of line 2017-04-07 10:06:37 +08:00
SmmCpuExceptionHandlerLib.inf UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support 2017-12-08 14:38:48 +08:00
SmmCpuExceptionHandlerLib.uni UefiCpuPkg/CpuExceptionHandlerLib: Trim white space at end of line 2017-04-07 10:06:37 +08:00
SmmException.c UefiCpuPkg/CpuExceptionHandlerLib: Add stack switch support 2017-12-08 14:38:48 +08:00