From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (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 9B98F818F7 for ; Mon, 26 Dec 2016 03:21:06 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga102.jf.intel.com with ESMTP; 26 Dec 2016 03:21:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,404,1477983600"; d="scan'208";a="916215803" Received: from jfan12-desk.ccr.corp.intel.com ([10.239.9.5]) by orsmga003.jf.intel.com with ESMTP; 26 Dec 2016 03:21:05 -0800 From: Jeff Fan To: edk2-devel@lists.01.org Cc: Feng Tian , Kinney, Michael D , Ruiyu Ni Date: Mon, 26 Dec 2016 19:20:56 +0800 Message-Id: <20161226112102.25512-1-jeff.fan@intel.com> X-Mailer: git-send-email 2.9.3.windows.2 Subject: [PATCH 0/6] Support source debugging on DXE AP function X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2016 11:21:06 -0000 The current DxeDebugAgentLib supports source debugging on AP function. This update is to update DxeMpInitLib to consume Debug Agent Library by DEBUG_AGENT_INIT_DXE_AP flag. Thus, we could source debugging AP function invoked by CPU MP Protocol. However, current SecPeiDebugAgentLib does not support source debugging on AP function invoked by CPU MP PPI. I have submitted one bugzilla to add this support at https://bugzilla.tianocore.org/show_bug.cgi?id=308. We also fixed some bugs during switching BSP, when source debugging feature enabled. Cc: Feng Tian Cc: Kinney, Michael D Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Jeff Fan (6): UefiCpuPkg/DxeMpInitLib: Support source debugging on AP function UefiCpuPkg/MpInitLib: Sync BSP's local APIC timer settings to APs UefiCpuPkg/MpInitLib: Move save/restore interrupt to SwitchBSPWorker() UefiCpuPkg/MpInitLib: Swap local APIC timer interrupt state UefiCpuPkg/MpInitLib: Disable and restore system timer interrupt UefiCpuPkg/MpInitLib: Set new AP to idle state after switching BSP UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf | 5 ++ UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 58 ++++++++++++----- UefiCpuPkg/Library/MpInitLib/MpLib.c | 91 ++++++++++++++++++++++++++- UefiCpuPkg/Library/MpInitLib/MpLib.h | 15 +++++ UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 12 ++++ 5 files changed, 164 insertions(+), 17 deletions(-) -- 2.9.3.windows.2