From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-002e3701.pphosted.com (mx0b-002e3701.pphosted.com [148.163.143.35]) by mx.groups.io with SMTP id smtpd.web09.2662.1641618769694825479 for ; Fri, 07 Jan 2022 21:12:49 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=BCPYdS9k; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.143.35, mailfrom: prvs=000704d8ca=abner.chang@hpe.com) Received: from pps.filterd (m0134423.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 2082Ce2G031927 for ; Sat, 8 Jan 2022 05:12:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding; s=pps0720; bh=iN0zVIHuX+0rZH6s2PXT+ZOvZoFjQYKWK91OhrRLtlg=; b=BCPYdS9kKsiaeDl7WNeFAeIZFvLVQ09NKeYzAmur8qVzp6VcWxwplDpedA8vvvcH7xtT 8rD2u0yl2qlraVqn4ujG7JsCU4qSEhzhDzr3AcYgi8rl5m5RAPqs9H7KCmtDaTI7MqyV sWuRWfoQ9wdBf0vgFHk0RIUfFqMdSiHjkgVMAWPjNapaInIFt837KoS4OkGESDLilu3t cerfBEK4Q5PauhGrRPmkqHFmjX15KRA3SRr9CotOa/1fYiHGzjGOr0byuIDYRzMRnvqN 5bgoOfLivvqr8YZodfS1XZ/PulCkqQlIBPM7HSzrayXWC361d3BSfmqSgo37SvqFvkaD xw== Received: from g2t2352.austin.hpe.com (g2t2352.austin.hpe.com [15.233.44.25]) by mx0b-002e3701.pphosted.com (PPS) with ESMTPS id 3df04bh2jx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 08 Jan 2022 05:12:48 +0000 Received: from g2t2360.austin.hpecorp.net (g2t2360.austin.hpecorp.net [16.196.225.135]) by g2t2352.austin.hpe.com (Postfix) with ESMTP id 70B0163 for ; Sat, 8 Jan 2022 05:12:48 +0000 (UTC) Received: from UB16Abner.asiapacific.hpqcorp.net (ub16abner.asiapacific.hpqcorp.net [15.119.209.229]) by g2t2360.austin.hpecorp.net (Postfix) with ESMTP id B7C9F37; Sat, 8 Jan 2022 05:12:47 +0000 (UTC) From: "Abner Chang" To: devel@edk2.groups.io Cc: abner.chang@hpe.com Subject: [PATCH 27/79] Signal EndOfDxe in boot manager Date: Sat, 8 Jan 2022 12:10:47 +0800 Message-Id: <20220108041121.16005-26-abner.chang@hpe.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20220108041121.16005-1-abner.chang@hpe.com> References: <20220108041121.16005-1-abner.chang@hpe.com> MIME-Version: 1.0 X-Proofpoint-GUID: zjEgiux9eTDf0MD1MhZj9xmtksTqansH X-Proofpoint-ORIG-GUID: zjEgiux9eTDf0MD1MhZj9xmtksTqansH X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-08_01,2022-01-07_01,2021-12-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 mlxlogscore=999 spamscore=0 lowpriorityscore=0 bulkscore=0 malwarescore=0 adultscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2110150000 definitions=main-2201080036 Content-Transfer-Encoding: quoted-printable From: Daniel Schaefer (This is migrated from edk2-platforms:Platform) Otherwise we can't load a 3rd party image because we're still in DXE. MdeModulePkg/Universal/SecurityStubDxe/Defer3rdPartyImageLoad.c prevents that. Cc: Abner Chang Cc: Sunil V L Cc: Leif Lindholm Reviewed-by: Sunil V L Reviewed-by: Abner Chang Signed-off-by: Daniel Schaefer --- .../PlatformBootManagerLib/PlatformBootManagerLib.inf | 3 ++- .../Library/PlatformBootManagerLib/PlatformBootManager.c | 7 ++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformBootManagerLib.inf b/Platform/RISC-V/PlatformPkg/Library/PlatformBootM= anagerLib/PlatformBootManagerLib.inf index afba07573f..2bf89a3c44 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManagerLib.inf +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManagerLib.inf @@ -1,7 +1,7 @@ ## @file=0D # Include all platform action which can be customized by IBV/OEM.=0D #=0D -# Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D +# Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All righ= ts reserved.
=0D #=0D # SPDX-License-Identifier: BSD-2-Clause-Patent=0D #=0D @@ -48,6 +48,7 @@ PrintLib=0D =0D [Guids]=0D + gEfiEndOfDxeEventGroupGuid=0D =0D [Protocols]=0D gEfiGenericMemTestProtocolGuid ## CONSUMES=0D diff --git a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/Pla= tformBootManager.c b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManage= rLib/PlatformBootManager.c index 82cd311df5..d67f4836fc 100644 --- a/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.c +++ b/Platform/RISC-V/PlatformPkg/Library/PlatformBootManagerLib/PlatformBo= otManager.c @@ -1,7 +1,7 @@ /** @file=0D This file include all platform actions=0D =0D -Copyright (c) 2019, Hewlett Packard Enterprise Development LP. All rights = reserved.
=0D +Copyright (c) 2021, Hewlett Packard Enterprise Development LP. All rights = reserved.
=0D Copyright (c) 2015, Intel Corporation. All rights reserved.
=0D =0D SPDX-License-Identifier: BSD-2-Clause-Patent=0D @@ -155,6 +155,11 @@ PlatformBootManagerBeforeConsole ( EFI_INPUT_KEY F2;=0D EFI_BOOT_MANAGER_LOAD_OPTION BootOption;=0D =0D + //=0D + // Signal EndOfDxe PI Event=0D + //=0D + EfiEventGroupSignal (&gEfiEndOfDxeEventGroupGuid);=0D +=0D //=0D // Update the console variables.=0D //=0D --=20 2.31.1