From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 3ED1E219392E0 for ; Sat, 1 Apr 2017 06:25:33 -0700 (PDT) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP; 01 Apr 2017 06:25:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,257,1486454400"; d="scan'208";a="242805968" Received: from jfan12-desk.ccr.corp.intel.com ([10.239.158.57]) by fmsmga004.fm.intel.com with ESMTP; 01 Apr 2017 06:25:31 -0700 From: Jeff Fan To: edk2-devel@lists.01.org Cc: Jiewen Yao , Michael Kinney , Feng Tian Date: Sat, 1 Apr 2017 21:25:21 +0800 Message-Id: <20170401132530.8340-1-jeff.fan@intel.com> X-Mailer: git-send-email 2.9.3.windows.2 Subject: [PATCH 0/9] Export Dump CPU Context service X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2017 13:25:33 -0000 This serial of patches are: 1. Export PeCoffSerachImageBase() that could serach PE/COFF image base. 2. Export DumpCpuContext that could dump CPU context when exception happened. https://bugzilla.tianocore.org/show_bug.cgi?id=242 Cc: Jiewen Yao Cc: Michael Kinney Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Jeff Fan (9): MdePkg/PeCoffGetEntryPointLib: Add PeCoffSerachImageBase() MdeModulePkg/CpuExceptionHandlerLib: Add DumpCpuContext() UefiCpuPkg/CpuExceptionHandlerLib: Rename internal DumpCpuContent() UefiCpuPkg/CpuExceptionHandlerLib: Add DumpModuleImageInfo() UefiCpuPkg/CpuExceptionHandlerLib: Add DumpCpuContext() implementation UefiCpuPkg/CpuExceptionHandlerLib: Display PF Excption Data bit UefiCpuPkg/PiSmmCpuDxeSmm: Consume PeCoffSerachImageBase() UefiCpuPkg/PiSmmCpuDxeSmm: Consume DumpCpuContext() SourceLevelDebugPkg/DebugAgent.c: Consume PeCoffSerachImageBase() .../Include/Library/CpuExceptionHandlerLib.h | 15 ++++- .../CpuExceptionHandlerLibNull.c | 16 ++++- MdePkg/Include/Library/PeCoffGetEntryPointLib.h | 20 +++++- .../PeCoffGetEntryPoint.c | 72 ++++++++++++++++++++- .../DebugAgent/DebugAgentCommon/DebugAgent.c | 50 ++------------- .../CpuExceptionHandlerLib/CpuExceptionCommon.c | 75 ++++++---------------- .../CpuExceptionHandlerLib/CpuExceptionCommon.h | 27 +++++--- .../Library/CpuExceptionHandlerLib/DxeException.c | 7 +- .../Ia32/ArchExceptionHandler.c | 65 ++++++++++++------- .../CpuExceptionHandlerLib/PeiCpuException.c | 6 +- .../CpuExceptionHandlerLib/PeiDxeSmmCpuException.c | 4 +- .../CpuExceptionHandlerLib/SecPeiCpuException.c | 8 +-- .../Library/CpuExceptionHandlerLib/SmmException.c | 7 +- .../X64/ArchExceptionHandler.c | 57 ++++++++++------ UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c | 18 ++---- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 37 +---------- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 4 +- UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfileInternal.h | 6 +- UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | 18 ++---- 19 files changed, 265 insertions(+), 247 deletions(-) -- 2.9.3.windows.2