From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (NAM12-MW2-obe.outbound.protection.outlook.com [40.107.244.63]) by mx.groups.io with SMTP id smtpd.web11.66932.1673554030215631520 for ; Thu, 12 Jan 2023 12:07:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ami.com header.s=selector1 header.b=HfzbLRmY; spf=pass (domain: ami.com, ip: 40.107.244.63, mailfrom: robert@ami.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Pdw36VvkHNFi1UZeySPANQGnKqlt8Ccx5vC+2A1Fc/1LVejVNsLhtx5nsUkJCzMduswWYRulpTqp7RBOYiGZfbI1QVcgQhLUtvzYrXpmslp1l7YpzmF9lOMxjG/OfF0t+gt6RS+OnvqklwZxstHfmEO8AXCPZquYuxBfWaSDSwxOz674wvazL8P790MD1QArj61gkGXK/hqQyrzMgopBGn5xjPsyqwbacD6mHbIXRH78wXCZ0ym76lLZt5T8ABxVDLHr2GnzAwhj9TNT0Yj3aSEOSuQkVMqCKcmyk7KbUyU8NR1K9WZME6w5pmg7H8Q/YwyLczdWK47jfOhdjvZR2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=IlVzgpj3Fsz3t5p/s9YSYVneNUZjv2P+i9CCG4i7vP8=; b=eMOPs+tZTKNxhKEtlt2xvKMSwx4W5TRM5uZ8omecthcWLZgdAhJTS2fa4lgZA6wGMePejULcOyfXZF0mY2sti86t6KQDQv6NC5wfDG0vY+HPNn1BGwd7a/zlKVmFkUbWqM7F8Z3ZL6FilhvL9GnaICNT9zLQ3z6RenFP6hW09hdejDzPPqpGsiCWUnectdY6jLPA7jD0rCZKHYLSIxTZc5PUVz5jrtPYAN3Txio5fDL183niqqWSP1lhSqkqZUc5IooBogBKNBgzmPB8WSbavQpV9DpZUmlfefQUlD2LIaY4FOBgMFDsg2dklXbTRC8Q4TZ6yz9v/A6oU97B67kjPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ami.com; dmarc=pass action=none header.from=ami.com; dkim=pass header.d=ami.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ami.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=IlVzgpj3Fsz3t5p/s9YSYVneNUZjv2P+i9CCG4i7vP8=; b=HfzbLRmYJJvoxw9eb2AQWechAF30RaWfr3oxZZgNGZrWr6azl/3diYItifWLPkWVQa0l3xKtk8eAQiYbmnWXNYEd8G1e4/PUqgx+oSHHCYiLkAfpb90p5eTl07ezIaHCc5afxc/vzrh/5l+M0DWDrjeNECWTmVacpY66nEBlgGY= Received: from BN0PR10MB5158.namprd10.prod.outlook.com (2603:10b6:408:120::18) by MN6PR10MB7468.namprd10.prod.outlook.com (2603:10b6:208:47b::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.11; Thu, 12 Jan 2023 20:07:09 +0000 Received: from BN0PR10MB5158.namprd10.prod.outlook.com ([fe80::4ba7:7fd3:938a:2503]) by BN0PR10MB5158.namprd10.prod.outlook.com ([fe80::4ba7:7fd3:938a:2503%3]) with mapi id 15.20.6002.013; Thu, 12 Jan 2023 20:07:09 +0000 From: "Robert Phelps" To: "devel@edk2.groups.io" CC: "michael.d.kinney@intel.com" , "gaoliming@byosoft.com.cn" , "zhiguang.liu@intel.com" Subject: [PATCH v2 2/2] MdePkg: Added Call for AfterReadyToBoot Event Thread-Topic: [PATCH v2 2/2] MdePkg: Added Call for AfterReadyToBoot Event Thread-Index: AQHZJsFz2mTw/U3tfUauLczkqNEEtg== Date: Thu, 12 Jan 2023 20:07:09 +0000 Message-ID: <20230112200650.929-3-robert@ami.com> References: <20230112200650.929-1-robert@ami.com> In-Reply-To: <20230112200650.929-1-robert@ami.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.36.1.windows.1 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ami.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BN0PR10MB5158:EE_|MN6PR10MB7468:EE_ x-ms-office365-filtering-correlation-id: 12fa50ea-b4c5-4308-6596-08daf4d895ec x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 6d1saf+Y5cf+p1pb/w+isJCUjw0yQY2pUyMkU/hjVjqQFLHPF9zjV9S/u/VukXjspO9zMeiKccB3tX/Sjb4ScQ6e2Gd3Kia0jNq4+KIRaXU336+vr28IpqlURVfpQaowyfMvUJWvFBCH0TdQOyvrFc+9JrmyNhm7vV4mQt4X8DHKEHP5bI/i9K078BGE6WnXI4tMjAr6DcQhEYmHAVsQGKnYkO4JZI5vi3ByenClAJIGCpXLXCGFn2wCz9+ntvAyRueCKAn56DZTMmdVoDAgH4Zzo5ZnnXAxENOsxPRO78+6L/eYBY6Md1Uh05n/mEpWBjfcrgoAD/vyWp0nJTeClGiJz3CVKKmR7YtpYO1gQq7cYi28XsJ2OAd/Z+9zmk2b3+LeDcCxHUbxHWkTuemi6iE8nR6uwImACkXNmvGMZ9tqbt+22SSUNJb7ULgdP3ZoNiFzoWoaDDIRR26ks/PzXKIDn2+7cLRmDZyJyZbkvMIm8aEWcZPCRmcX4XiDvxjzHX9c1NjpkybxM2Lt/VjWlYeYdaKkVmM+/tI+arCtZZgqs/Vhcf/F/V+rtTV8BWYADH+E8c6ppQ2B0i/ABVZ/JaAgasWiDcJFGeUMB+bsgwQSTugsjVvdUPto1kZvyCMASgblomvrTgQlHiWw/bSkozhRm0UQbxOq169/NxbRmsHWmo66y6WOqu+fSe1EXNLdGUUE6mMN3ecDhW98Iu1HYQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN0PR10MB5158.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(6029001)(4636009)(396003)(366004)(346002)(376002)(39850400004)(136003)(451199015)(86362001)(6506007)(2906002)(83380400001)(5660300002)(186003)(26005)(6486002)(8936002)(66476007)(66556008)(66446008)(76116006)(64756008)(1076003)(40140700001)(36756003)(6512007)(41300700001)(66946007)(478600001)(54906003)(2616005)(19627235002)(8676002)(4326008)(38070700005)(71200400001)(316002)(6916009)(38100700002)(122000001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?d3JhrIwqqjAuZHFFgTB/V07I0syTDee7zUKiRE8KWSIuFSisRqciQLM4x8?= =?iso-8859-1?Q?KnTKx3ppJDN84wWK4Suu9UXWHCqO36FmrmyRankJLkhqQXhPFjznlIxRCA?= =?iso-8859-1?Q?ueTYxAETbjbmhwN2JQwWQW5NmGEyDtaC2GNj4WSsX0p62bMztUCoqls6M/?= =?iso-8859-1?Q?MGxXxAuLTWTBWzF13ln2iZcQJHf86rwN3awFl3ce9umpI2QUd9aNAUEn60?= =?iso-8859-1?Q?V4AJKKMKpBsUuttwO/EWo578QNHnbYHOzN1ulQ4UtJQE8uFrsl0antwe+9?= =?iso-8859-1?Q?4ib6ysSvBygzHVXTU2buSoBVXrb3LA+40vx5KNMmNXZOWhnnzTKDRMlka5?= =?iso-8859-1?Q?5NcRZG4OxWc7ggFk8IbwNqLCmYHIxm2qP3DzAmsAoS7je2sFNYOxsoshCg?= =?iso-8859-1?Q?xqh3CfqU5czk3m4OdVopUPpMxvJ/BCZ8V9d8O762AjwA6+V6my3eN+VXlR?= =?iso-8859-1?Q?RozdbAqLRfrzEXAAEdzgRi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Q66fcFcUPGvcRWWS4Hph+rAaDRYkRHIPoVFt9MVc3M+bI6qhxwfn8AvPXz?= =?iso-8859-1?Q?YasoCHvc3fWu29WHKb5+nmWDMsNoFkSg7gSULPmm2tYzKjx2osISuCQ06D?= =?iso-8859-1?Q?K9lD9FY5Ay8gX+g33xFgYplt8WN18Vmri7KT17rAK+QhRp99kUnnPIweFj?= =?iso-8859-1?Q?Q02SzeNRnyvWIKdT05G72S3mS8aQhg4I8zAmxScp4BOXZd98HtaJsBaLtB?= =?iso-8859-1?Q?nwp50EJ6nAYZiOMSDW1pqw6De8AeEYcEc3?= MIME-Version: 1.0 X-OriginatorOrg: ami.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN0PR10MB5158.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12fa50ea-b4c5-4308-6596-08daf4d895ec X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2023 20:07:09.1288 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 27e97857-e15f-486c-b58e-86c2b3040f93 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: j0QMQ6awFKkvhn4xRBLyai+5OMErczMl7WsQtqenuKmi1IbyCPmZXpepO8QPo8pK X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN6PR10MB7468 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable In the function EfiSignalEventReadyToBoot, Code was added to also create, s= ignal, and close the AfterReadyToBoot event. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Robert Phelps --- MdePkg/Library/UefiLib/UefiLib.inf | 1 + MdePkg/Library/UefiLib/UefiNotTiano.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/MdePkg/Library/UefiLib/UefiLib.inf b/MdePkg/Library/UefiLib/Ue= fiLib.inf index 01ed92092d..3aced47d2e 100644 --- a/MdePkg/Library/UefiLib/UefiLib.inf +++ b/MdePkg/Library/UefiLib/UefiLib.inf @@ -56,6 +56,7 @@ [Guids] gEfiEventReadyToBootGuid ## SOMETIMES_CONSUMES ## = Event + gEfiEventAfterReadyToBootGuid ## SOMETIMES_CONSUMES ## = Event gEfiEventLegacyBootGuid ## SOMETIMES_CONSUMES ## = Event gEfiGlobalVariableGuid ## SOMETIMES_CONSUMES ## = Variable gEfiAcpi20TableGuid ## SOMETIMES_CONSUMES ## = SystemTable diff --git a/MdePkg/Library/UefiLib/UefiNotTiano.c b/MdePkg/Library/UefiLib= /UefiNotTiano.c index d84e91fd01..f8f7406f3a 100644 --- a/MdePkg/Library/UefiLib/UefiNotTiano.c +++ b/MdePkg/Library/UefiLib/UefiNotTiano.c @@ -222,12 +222,26 @@ EfiSignalEventReadyToBoot ( { EFI_STATUS Status; EFI_EVENT ReadyToBootEvent; + EFI_EVENT AfterReadyToBootEvent; Status =3D EfiCreateEventReadyToBoot (&ReadyToBootEvent); if (!EFI_ERROR (Status)) { gBS->SignalEvent (ReadyToBootEvent); gBS->CloseEvent (ReadyToBootEvent); } + + Status =3D gBS->CreateEventEx ( + EVT_NOTIFY_SIGNAL, + TPL_CALLBACK, + EfiEventEmptyFunction, + NULL, + &gEfiEventAfterReadyToBootGuid, + AfterReadyToBootEvent + ); + if (!EFI_ERROR (Status)) { + gBS->SignalEvent (AfterReadyToBootEvent); + gBS->CloseEvent (AfterReadyToBootEvent); + } } /** -- 2.36.1.windows.1 -The information contained in this message may be confidential and propriet= ary to American Megatrends (AMI). This communication is intended to be read= only by the individual or entity to whom it is addressed or by their desig= nee. If the reader of this message is not the intended recipient, you are o= n notice that any distribution of this message, in any form, is strictly pr= ohibited. Please promptly notify the sender by reply e-mail or by telephone= at 770-246-8600, and then delete or destroy all copies of the transmission= .