From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=ruiyu.ni@intel.com; receiver=edk2-devel@lists.01.org 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 F0B1921102DBD for ; Thu, 23 Aug 2018 02:55:51 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Aug 2018 02:55:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,278,1531810800"; d="scan'208";a="85741606" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.8]) by orsmga002.jf.intel.com with ESMTP; 23 Aug 2018 02:55:50 -0700 From: Ruiyu Ni To: edk2-devel@lists.01.org Cc: Hao Wu , Andrew Fish Date: Thu, 23 Aug 2018 17:56:18 +0800 Message-Id: <20180823095620.280996-11-ruiyu.ni@intel.com> X-Mailer: git-send-email 2.16.1.windows.1 In-Reply-To: <20180823095620.280996-1-ruiyu.ni@intel.com> References: <20180823095620.280996-1-ruiyu.ni@intel.com> Subject: [PATCH v2 10/12] EmulatorPkg/PlatformBds: Signal EndOfDxe in platform BDS X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 09:55:52 -0000 Without signal of EndOfDxe, the 3rd party code (.efi from non-flash storage) cannot run. It's forbidden by 8be37a5cee700777ca8e8e8a34cc2225b21931a7 *MdeModulePkg/SecurityStubDxe: Defer 3rd party image before EndOfDxe The patch enables running of SCT from internal shell. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni Cc: Hao Wu Cc: Andrew Fish --- EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c | 4 +++- EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h | 4 +++- EmulatorPkg/Library/EmuBdsLib/EmuBdsLib.inf | 5 +++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c b/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c index 3580d36779..75fba847f4 100644 --- a/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c +++ b/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c @@ -1,6 +1,6 @@ /*++ @file -Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
Portions copyright (c) 2011, Apple Inc. All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -77,6 +77,8 @@ Returns: **/ { SetupVariableInit (); + + EfiEventGroupSignal (&gEfiEndOfDxeEventGroupGuid); } EFI_STATUS diff --git a/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h b/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h index a099fecda0..5ececd4bed 100644 --- a/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h +++ b/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.h @@ -1,6 +1,6 @@ /*++ @file -Copyright (c) 2006, Intel Corporation. All rights reserved.
+Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
Portions copyright (c) 2011, Apple Inc. All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -18,6 +18,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include +#include #include #include #include @@ -32,6 +33,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #include #include #include +#include extern BDS_CONSOLE_CONNECT_ENTRY gPlatformConsole[]; diff --git a/EmulatorPkg/Library/EmuBdsLib/EmuBdsLib.inf b/EmulatorPkg/Library/EmuBdsLib/EmuBdsLib.inf index 526a159b96..755c50c789 100644 --- a/EmulatorPkg/Library/EmuBdsLib/EmuBdsLib.inf +++ b/EmulatorPkg/Library/EmuBdsLib/EmuBdsLib.inf @@ -2,7 +2,7 @@ # Platfrom BDS driver # # Do platform action customized by IBV/OEM. -# Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
# Portions copyright (c) 2011, Apple Inc. All rights reserved. # # This program and the accompanying materials @@ -51,10 +51,11 @@ [LibraryClasses] PcdLib GenericBdsLib DevicePathLib - + UefiLib [Guids] gEmuSystemConfigGuid + gEfiEndOfDxeEventGroupGuid [Pcd] gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow -- 2.16.1.windows.1