From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 E36D881E8F for ; Fri, 11 Nov 2016 03:57:44 -0800 (PST) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP; 11 Nov 2016 03:57:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,621,1473145200"; d="scan'208";a="900344626" Received: from jfan12-desk.ccr.corp.intel.com ([10.239.9.5]) by orsmga003.jf.intel.com with ESMTP; 11 Nov 2016 03:57:46 -0800 From: Jeff Fan To: edk2-devel@ml01.01.org Cc: Laszlo Ersek , Paolo Bonzini , Feng Tian , Jiewen Yao , Michael D Kinney Date: Fri, 11 Nov 2016 19:57:39 +0800 Message-Id: <20161111115740.8024-2-jeff.fan@intel.com> X-Mailer: git-send-email 2.9.3.windows.2 In-Reply-To: <20161111115740.8024-1-jeff.fan@intel.com> References: <20161111115740.8024-1-jeff.fan@intel.com> Subject: [PATCH 1/2] UefiCpuPkg/DxeMpLib: Rename MpInitExitBootServicesCallback() 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: Fri, 11 Nov 2016 11:57:45 -0000 Rename MpInitExitBootServicesCallback() to MpInitChangeApLoopCallback() because it will not only be invoked on Exit Boot Service Event, but also will be invoked on Legacy Ready To Boot Event. https://bugzilla.tianocore.org/show_bug.cgi?id=210 Cc: Laszlo Ersek Cc: Paolo Bonzini Cc: Feng Tian Cc: Jiewen Yao Cc: Michael D Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan --- UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c b/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c index 4b929ff..7ba4b80 100644 --- a/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c +++ b/UefiCpuPkg/Library/MpInitLib/DxeMpLib.c @@ -261,7 +261,7 @@ RelocateApLoop ( **/ VOID EFIAPI -MpInitExitBootServicesCallback ( +MpInitChangeApLoopCallback ( IN EFI_EVENT Event, IN VOID *Context ) @@ -273,7 +273,7 @@ MpInitExitBootServicesCallback ( CpuMpData->PmCodeSegment = GetProtectedModeCS (); CpuMpData->ApLoopMode = PcdGet8 (PcdCpuApLoopMode); WakeUpAP (CpuMpData, TRUE, 0, RelocateApLoop, mReservedApLoopFunc); - DEBUG ((DEBUG_INFO, "MpInitExitBootServicesCallback() done!\n")); + DEBUG ((DEBUG_INFO, "%a() done!\n", __FUNCTION__)); } /** @@ -343,7 +343,7 @@ InitMpGlobalData ( Status = gBS->CreateEvent ( EVT_SIGNAL_EXIT_BOOT_SERVICES, TPL_CALLBACK, - MpInitExitBootServicesCallback, + MpInitChangeApLoopCallback, NULL, &mMpInitExitBootServicesEvent ); -- 2.9.3.windows.2