From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (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 D09B020D77DC6 for ; Thu, 6 Apr 2017 18:18:25 -0700 (PDT) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP; 06 Apr 2017 18:18:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,162,1488873600"; d="scan'208";a="74765709" Received: from jfan12-desk.ccr.corp.intel.com ([10.239.158.57]) by orsmga004.jf.intel.com with ESMTP; 06 Apr 2017 18:18:24 -0700 From: Jeff Fan To: edk2-devel@lists.01.org Cc: Jiewen Yao , Michael Kinney , Feng Tian Date: Fri, 7 Apr 2017 09:18:18 +0800 Message-Id: <20170407011823.12664-1-jeff.fan@intel.com> X-Mailer: git-send-email 2.9.3.windows.2 Subject: [PATCH v2 0/5] 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: Fri, 07 Apr 2017 01:18:26 -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 v2: Combine v1's patch 3-6 to v2's patch 3. Combine v1's patch 7, 8 to v2's patch 4. Cc: Jiewen Yao Cc: Michael Kinney Cc: Feng Tian Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Jeff Fan (5): MdePkg/PeCoffGetEntryPointLib: Add PeCoffSerachImageBase() MdeModulePkg/CpuExceptionHandlerLib: Add DumpCpuContext() UefiCpuPkg/CpuExceptionHandlerLib: Add DumpCpuContext() implementation UefiCpuPkg/PiSmmCpuDxeSmm: Consume new APIs 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 | 82 ++++++---------------- .../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 | 59 ++++++++++------ 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, 268 insertions(+), 253 deletions(-) -- 2.9.3.windows.2