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 B331281D79 for ; Mon, 16 Jan 2017 23:08:56 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga105.jf.intel.com with ESMTP; 16 Jan 2017 23:08:57 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.33,243,1477983600"; d="scan'208";a="1083871662" Received: from shwdeopenpsi068.ccr.corp.intel.com ([10.239.9.9]) by orsmga001.jf.intel.com with ESMTP; 16 Jan 2017 23:08:55 -0800 From: Star Zeng To: edk2-devel@lists.01.org Cc: Star Zeng , Kelly Steele , Liming Gao , Michael Kinney Date: Tue, 17 Jan 2017 15:08:39 +0800 Message-Id: <1484636920-180432-7-git-send-email-star.zeng@intel.com> X-Mailer: git-send-email 2.7.0.windows.1 In-Reply-To: <1484636920-180432-1-git-send-email-star.zeng@intel.com> References: <1484636920-180432-1-git-send-email-star.zeng@intel.com> Subject: [PATCH 6/7] QuarkPlatformPkg: Use EfiEventGroupSignal from UefiLib 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: Tue, 17 Jan 2017 07:08:56 -0000 Use EfiEventGroupSignal from UefiLib and remove InternalBdsEmptyCallbackFuntion. REF: https://bugzilla.tianocore.org/show_bug.cgi?id=298 Cc: Kelly Steele Cc: Liming Gao Cc: Michael Kinney Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng --- .../PlatformBootManagerLib/PlatformBootManager.c | 25 ++-------------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/QuarkPlatformPkg/Library/PlatformBootManagerLib/PlatformBootManager.c b/QuarkPlatformPkg/Library/PlatformBootManagerLib/PlatformBootManager.c index b61eb03360a2..49aa15c11f15 100644 --- a/QuarkPlatformPkg/Library/PlatformBootManagerLib/PlatformBootManager.c +++ b/QuarkPlatformPkg/Library/PlatformBootManagerLib/PlatformBootManager.c @@ -2,7 +2,7 @@ This file include all platform action which can be customized by IBV/OEM. -Copyright (c) 2015 - 2016, Intel Corporation. All rights reserved.
+Copyright (c) 2015 - 2017, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -176,16 +176,6 @@ PlatformRegisterFvBootOption ( } } -VOID -EFIAPI -InternalBdsEmptyCallbackFuntion ( - IN EFI_EVENT Event, - IN VOID *Context - ) -{ - return; -} - /** Do the platform specific action before the console is connected. @@ -209,7 +199,6 @@ PlatformBootManagerBeforeConsole ( EFI_BOOT_MODE BootMode; EFI_ACPI_S3_SAVE_PROTOCOL *AcpiS3Save; EFI_HANDLE Handle; - EFI_EVENT EndOfDxeEvent; // // Update the console variables. @@ -294,17 +283,7 @@ PlatformBootManagerBeforeConsole ( // Inform PI SMM drivers that BDS may run 3rd party code // Create and signal End of DXE event group // - Status = gBS->CreateEventEx ( - EVT_NOTIFY_SIGNAL, - TPL_CALLBACK, - InternalBdsEmptyCallbackFuntion, - NULL, - &gEfiEndOfDxeEventGroupGuid, - &EndOfDxeEvent - ); - ASSERT_EFI_ERROR (Status); - gBS->SignalEvent (EndOfDxeEvent); - gBS->CloseEvent (EndOfDxeEvent); + EfiEventGroupSignal (&gEfiEndOfDxeEventGroupGuid); DEBUG((EFI_D_INFO,"All EndOfDxe callbacks have returned successfully\n")); -- 2.7.0.windows.1