From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (NAM02-DM3-obe.outbound.protection.outlook.com [40.107.95.87]) by mx.groups.io with SMTP id smtpd.web10.2234.1667939310473986011 for ; Tue, 08 Nov 2022 12:28:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@ami.com header.s=selector1 header.b=E4jXBC2D; spf=pass (domain: ami.com, ip: 40.107.95.87, mailfrom: robert@ami.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R9zJCgY4gWrQkXlP8CSkjYIazQUBLTehV8LRmWgX4LXWjTUsophTMlrIUJTPgDXbXO/g2QMvQefIfGpfXqSIkQnsGZlRxq/O2GtRTkhOu2UZqiMxF4uUI6nmdOIqxA6DICwMCZ+9l8DPdcoH+Stcdokkg4ZNMuevjApGm4cPfQzDDsvOSuhmKNfGQZTeQFutTGLbGhCdGbnMAY/4pzcItmaLTR1tnyty1XgxA8/WDNDu/DA8cC4M9TpchI9ooMMChdLhrGS0GbQW9YAKbMLF3z5eRO3e6ZG+mm4fttBFWvFCCD9GE5VLQNgeXTFmRRX4PdG49JCcvbqV0VWC7HOd8w== 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=eq63jWbfYcsKXwq0bH1mw1G3ps+8gGm8L7IZ2M5SLQc=; b=HU1dq42oW7GZU8ySDT1lwueslYjQkesI3HjSdUj6KufjWOl8oR+yxGH1oxOt1kMbGKvYPMfKu5YG8gujSi65dxBxURTRjPPoOzd+vMzn/nGyIleY1BH+5VDXXu7OvBYjoGGEYo+1p/UifnbxJ7sgj7HbjdTDSwTIgL0siuEj5tLJJMwL+a72jtxlTGvk8yqVlirlyAh1wxwxEfoBdy+uBbHIV3Gqym1l8TaGdFz18c4DSC8UN9Xxp3s/0UF2hJOhQCntpnQhbKr9SlAffuJHORY2PHYmY4GBhshQvxnhVDXhvfUJwiW6tBTrk+bkO5N2iMSyqj3khiv7CJg09YPKqQ== 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=eq63jWbfYcsKXwq0bH1mw1G3ps+8gGm8L7IZ2M5SLQc=; b=E4jXBC2Do1NWdvzPsXTnpI1GGu38RMPcELEmYEUNapOtRROvlFYhX0Qp5FI0OhJm532q/jjmCWI5A8kznCcKPNp7+iuKF1Sg0AgdgWilgE4nc3mRJt+VBHCwOfJzxcnwj6Bhqr+Dnqb8Wj+07yUQTU+JzCCorgYgbbn2IRj2v3M= Received: from BN0PR10MB5158.namprd10.prod.outlook.com (2603:10b6:408:120::18) by CH2PR10MB4264.namprd10.prod.outlook.com (2603:10b6:610:aa::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5791.26; Tue, 8 Nov 2022 20:28:28 +0000 Received: from BN0PR10MB5158.namprd10.prod.outlook.com ([fe80::f41a:2c1f:3fd0:89ff]) by BN0PR10MB5158.namprd10.prod.outlook.com ([fe80::f41a:2c1f:3fd0:89ff%9]) with mapi id 15.20.5791.027; Tue, 8 Nov 2022 20:28:28 +0000 From: "Robert Phelps" To: "devel@edk2.groups.io" CC: "michael.d.kinney@intel.com" , "gaoliming@byosoft.com.cn" , "zhiguang.liu@intel.com" , "dandan.bi@intel.com" Subject: [PATCH 2/2] MdeModulePkg: Added call to signal New Event Thread-Topic: [PATCH 2/2] MdeModulePkg: Added call to signal New Event Thread-Index: AQHY87CpuTLN9yS3BkC1vsctjMGj0g== Date: Tue, 8 Nov 2022 20:28:28 +0000 Message-ID: <20221108202815.1487-3-robert@ami.com> References: <20221108202815.1487-1-robert@ami.com> In-Reply-To: <20221108202815.1487-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_|CH2PR10MB4264:EE_ x-ms-office365-filtering-correlation-id: 722e7b6c-de8f-4aab-4506-08dac1c7cb93 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: j/JU1jVE8FxL0tL2Grm7Pni6EyFcNE/cQQNr8rgs2QlJ48dNRP/DrrELfj7WL80+tORK65QdwiTcuxWR7g/soevWXJLwUXDVIn+owt2dbyyXHENs9uQHEroAX0DX99foVr6wvIfWNemB/B4+M46CGnx4kN8AvbGkgpODk+rpHitkY+lcPKTxVjBvDr9RFszng79VT1sony9RaNAK7hne3l14lKHx01qEo9QnoBBFEVUmiCvUSp7rWMMKpaRt4UgsKRBwxg768X9tDbrhN/XYaAzbYoO9fmo5RJnvudjZrrK8KwmtSPNeN56ibjkBXlmSysBqtWNk2qGsuPYgxixaspV7xs5ksMsVcwZ4koZKHwWh+HzKCm4cjT6nvWC88Eb28WX93HDLqVtBfwWfoohc6aEdPZ5gsyOHh2Yp4Dpq2xxxPW75jpOsxSHL9VUqN+uc/TJJuqmZBqfj5shAcGvEn0O9/iOTiUhWuQR10dLcJDLPW0Ktk6VKJnJ1Lsv3kl39P7jNdw6t6U3LpE6D0yMdcAjkUrPlYOt2DncAQf6Xu1sz+QGx04yXXwF+xMKw0TX6627oPciPDp9PoYirkBHlgsgxgLdqNzQo0MQEP+sclsN6KIESppJZgJwRyyuZvByLNW+cKG7klRkvP/xSrjRNt3uQzC5QVf5GoO2F6eTud6fgt4snokmOBui+65PKjnNZmdeOzMFmV7v+JMIgee2zIQospQAFtGjQOkFp50YXeWhNyupOIn7jd2nN8/LbMa81Pcpf+1nb9uXTGF2h1fQ41A== 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)(4636009)(136003)(376002)(346002)(396003)(366004)(39850400004)(451199015)(40140700001)(36756003)(38070700005)(86362001)(2616005)(2906002)(1076003)(26005)(186003)(6512007)(6506007)(83380400001)(66476007)(66946007)(4326008)(64756008)(66446008)(8676002)(66556008)(6916009)(122000001)(54906003)(76116006)(316002)(478600001)(91956017)(6486002)(8936002)(38100700002)(71200400001)(41300700001)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?MI3RicBnc/pExm+11PTTUp0NSysh3cm4dBFhTVvHRrnAyYZdKDRhgqrT6E?= =?iso-8859-1?Q?rlQngwCf9iCzEQL6x9OWwOAtH5JY10HxGi/zsESdu3vy4RSy5HXd9iUtLC?= =?iso-8859-1?Q?OU84LT2N1QCY7eItzAosRryAmh78VezFsDa00egvgTlZ5hu4dROiNeDcq7?= =?iso-8859-1?Q?ylekPw5pzo77rh5iuOe1ZCAMlfjdLeGHJyqAK1Fq1nQs0l7ngxqjqFRp0n?= =?iso-8859-1?Q?ItpIR0KvHzaQegI4WBR1qJ9wAq/rwRFjAgkkLhhPkKR18voOr6AQPdPuMK?= =?iso-8859-1?Q?zAp/hJK5oo06esnC26WDvX2HpT3e3oPyuDPfhjVuZ5xl9/8H1dwThFh+ye?= =?iso-8859-1?Q?s3yBTXC7qTsuZhYJshD/GccsvXcpq6AmOX/0VHDwUW3CfpMUKDkX00+ib1?= =?iso-8859-1?Q?HJuMcmuBmrnrcQz/ovQG5pIiK9ii80p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Q?IDXZIRdsYtiNDfFCgnc2Az4Y914qCMCi0A5qDdPdhxNUt8VauSVhmytmyA?= =?iso-8859-1?Q?BucdhhWq3BRvX9pQIZbspe5u2aIwh4M/Q9zK1YLGNWOKHK71YPg1cGbztw?= =?iso-8859-1?Q?2nUrB8WJX3oV6QE2412HkHpaz31IAfOqWTHCUQ8PC0SZ0Z0wcxs4L5Oy6k?= =?iso-8859-1?Q?XfWxiWCC2be3LTl/sBJMpNsiuhXu+Adzgj6RdxJ3MPHNwcjlS2NHVZ3/Aq?= =?iso-8859-1?Q?KOxB0W4KHc42yPW+MvsdJNd4FW3PMOW9oyJDtG/X165B9fryh9109ciEMd?= =?iso-8859-1?Q?vysE0P+wetMJshKMoQwlukSElafGVV0/Wn?= 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: 722e7b6c-de8f-4aab-4506-08dac1c7cb93 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Nov 2022 20:28:28.3956 (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: CRsCs+btY7l6BMysNTMu8hWFhz4HKtAK0IeebX94+zAR9QAjHH3KDhVy2JXzu2o3 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR10MB4264 Content-Language: en-US Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable This code signals the Before Exit Boot Services event at the beginning of the ExitBootServices() function. This gives all the rest of the code to prepare for the ExitBootServices event. Cc: Dandan Bi [dandanbi] Cc: Liming Gao [lgao4] Signed-off-by: Robert Phelps --- MdeModulePkg/Core/Dxe/DxeMain.inf | 1 + MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/MdeModulePkg/Core/Dxe/DxeMain.inf b/MdeModulePkg/Core/Dxe/DxeM= ain.inf index e4bca89577..346bfa7e89 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain.inf +++ b/MdeModulePkg/Core/Dxe/DxeMain.inf @@ -122,6 +122,7 @@ gEfiMemoryAttributesTableGuid ## SOMETIMES_PRODUCES ##= SystemTable gEfiEndOfDxeEventGroupGuid ## SOMETIMES_CONSUMES ##= Event gEfiHobMemoryAllocStackGuid ## SOMETIMES_CONSUMES ##= SystemTable + gEfiEventBeforeExitBootServicesGuid ## PRODUCES ## Event [Ppis] gEfiVectorHandoffInfoPpiGuid ## UNDEFINED # HOB diff --git a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c b/MdeModulePkg/Core/Dx= e/DxeMain/DxeMain.c index 5733f0c8ec..1417f0eaa8 100644 --- a/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c +++ b/MdeModulePkg/Core/Dxe/DxeMain/DxeMain.c @@ -763,6 +763,8 @@ CoreExitBootServices ( { EFI_STATUS Status; + // Before-exit-boot-services event + CoreNotifySignalList (&gEfiEventBeforeExitBootServicesGuid); // // Disable Timer // -- 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= .