audk/UefiCpuPkg/Library/CpuExceptionHandlerLib
Star Zeng bb207f6cda UefiCpuPkg CpuExceptionHandlerLib: Enhance DumpModuleImageInfo()
Enhance DumpModuleImageInfo() for page fault with I/D set.

If it is page fault with I/D set, the (E/R)IP in SystemContext
could not be used for DumpModuleImageInfo(), instead of, the next
IP of the IP triggering this page fault could be found from stack
by (E/R)SP in SystemContext.

IA32 SDM:
— I/D flag (bit 4).
This flag is 1 if the access causing the page-fault exception was
an instruction fetch. This flag describes the access causing the
page-fault exception, not the access rights specified by paging.

The idea comes from SmiPFHandler () in
UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c and
UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c.

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: Star Zeng <star.zeng@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
2018-01-02 09:35:48 +08:00
..
Ia32 UefiCpuPkg CpuExceptionHandlerLib: Enhance DumpModuleImageInfo() 2018-01-02 09:35:48 +08:00
X64 UefiCpuPkg CpuExceptionHandlerLib: Enhance DumpModuleImageInfo() 2018-01-02 09:35: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: Add stack switch support 2017-12-08 14:38:48 +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