diff options
author | Star Zeng <star.zeng@intel.com> | 2017-12-27 17:24:04 +0800 |
---|---|---|
committer | Star Zeng <star.zeng@intel.com> | 2018-01-02 09:35:48 +0800 |
commit | bb207f6cda96640d1df0fd573689ca6764e48db4 (patch) | |
tree | 0f448907361c5d6becfd1ed640a1849f88cbcfc6 /BaseTools/Source/Python | |
parent | 7dbc50bd244d95fdc1741b9cfc561f0bfd724de1 (diff) | |
download | edk2-bb207f6cda96640d1df0fd573689ca6764e48db4.tar.gz edk2-bb207f6cda96640d1df0fd573689ca6764e48db4.tar.bz2 edk2-bb207f6cda96640d1df0fd573689ca6764e48db4.zip |
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>
Diffstat (limited to 'BaseTools/Source/Python')
0 files changed, 0 insertions, 0 deletions