From 41fd56be34cdec9a6ed729cbadb25a9097c675c1 Mon Sep 17 00:00:00 2001 From: Ruiyu Ni Date: Thu, 23 Aug 2018 17:35:14 +0800 Subject: EmulatorPkg/PlatformBds: Signal EndOfDxe in platform BDS REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1079 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 Reviewed-by: Hao A 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(-) (limited to 'EmulatorPkg') diff --git a/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c b/EmulatorPkg/Library/EmuBdsLib/BdsPlatform.c index 3580d36..75fba84 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 a099fec..5ececd4 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 526a159..755c50c 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 @@ PcdLib GenericBdsLib DevicePathLib - + UefiLib [Guids] gEmuSystemConfigGuid + gEfiEndOfDxeEventGroupGuid [Pcd] gEfiMdeModulePkgTokenSpaceGuid.PcdConOutRow -- cgit v1.1