From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web10.3753.1648536834268096696 for ; Mon, 28 Mar 2022 23:53:55 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Uxkc2mqB; spf=pass (domain: intel.com, ip: 134.134.136.126, mailfrom: yuanhao.xie@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648536834; x=1680072834; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Wow9jWZ5655b9Jz90e6uyFyOq6C9kkfdIwU5p+sUIkY=; b=Uxkc2mqBWnCNGhj+eEpJLY56TZqcK8VM82zwxcH82kH2vBGkPlNRZbyC L03tQzhr8tuXSq2uGLxh7wdVJPG5ekungHRw4jy3zA7lsZvId32dIHsgM 2q0J7C5GQLoFcxHlFBGIluJgU3MlxbLHRB5cwMugL3Yk4o11AG8calfFP 7uWySTCgSvHXvwhvn2i7rQ5liNwmscolOVlUZ6XXyqg0JgrLGsJ5BZ6qX 2WRLACDRI2XSyVPljwqmlXTS7X0fAY8fjioOxck5KljNIlZyc6p2ADs38 Gi6O/sbMWB6bcv05AsLRyzp5CNuv9Ad0viwJOScyPRJ6mbpcKzJxZNYae Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10300"; a="241330858" X-IronPort-AV: E=Sophos;i="5.90,219,1643702400"; d="scan'208";a="241330858" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Mar 2022 23:53:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,219,1643702400"; d="scan'208";a="521320903" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga006.jf.intel.com with ESMTP; 28 Mar 2022 23:53:52 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27; Mon, 28 Mar 2022 23:53:52 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Mon, 28 Mar 2022 23:53:52 -0700 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.108) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Mon, 28 Mar 2022 23:53:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lpOK+HyxtL3g+BeWowwlbKj0V4MofR/NYEEFdx+J2TzuAd8/CIkn4u4OEknIJ+vzTHXlMp3FKRxnhBQDy4cizUUwirgO63zRFvRgUPZg7E2BjYniXz1JSDu2OLoq6qNtw/QSeDRNt/nKXx9PaRuy5oLN9uKjQfKrzmjw47WktxDr3SKMq6MyVRx+epMVXwdY3urXrN60+T+wkO2x5EjUm0rr86tmsVp54CZKaBDyIwM2jPOPmJjlvXRcm7jdR85G7c+iJtwArSPxeSqojkdEqGXnEXJ7gQEMpEmkRnsdRDmDETmtYf5U4G2oxrfJzPPfH58CNZ9p7FqdGxVCh2Cjvw== 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=NKTdDj4ukiuLW89tZ0T3rcs7WNNveNWDpN9W8soHM3c=; b=ix+Sskw8oDU6TFvHDU075o5wHBXhThbyznnVkYyy7AlwdzBDWtfGv245F05VnrBRt6kRJ27rM+LY98RP5FCA9a8OrVMFbF3CGqb+/4LWfFQ7ui7AZjyFceBe6Mg/aU1ogKkPxD7c0NS93QIXtZ1ch4jb2JK3shv+Mvgz8kRs74/fIGIsW09BCIzZffadk4/XCajnc9FNbetBPypGOdtQOMZzuxalgWgT8ZS2wjl/579cM/2Z2mLsCa6z3oqYDCHgFm4mjiOOFh2wmDVD4n++Bcs5GOf1VWeYMqCKLOFPYAkpGJTi+XqUxYSeWu6x4m2kHH8soWIkgjazbqDK5/MHyQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from CO1PR11MB5026.namprd11.prod.outlook.com (2603:10b6:303:9c::13) by BL0PR11MB2914.namprd11.prod.outlook.com (2603:10b6:208:77::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5102.19; Tue, 29 Mar 2022 06:53:50 +0000 Received: from CO1PR11MB5026.namprd11.prod.outlook.com ([fe80::cd19:6a2b:6d2a:fa73]) by CO1PR11MB5026.namprd11.prod.outlook.com ([fe80::cd19:6a2b:6d2a:fa73%8]) with mapi id 15.20.5102.023; Tue, 29 Mar 2022 06:53:49 +0000 From: "Yuanhao Xie" To: "Dong, Guo" , "Ni, Ray" CC: "You, Benjamin" , "Rhodes, Sean" , "devel@edk2.groups.io" Subject: Re: [PATCH 1/2] UefiPayloadPkg: Add a new DebugPrintErrorLevelLib instance Thread-Topic: [PATCH 1/2] UefiPayloadPkg: Add a new DebugPrintErrorLevelLib instance Thread-Index: AQHYQyF3DU5CYLHQU0OJFiUsqf5tfKzV5Ejw Date: Tue, 29 Mar 2022 06:53:49 +0000 Message-ID: References: <20220328055849.989-1-yuanhao.xie@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.6.401.20 dlp-reaction: no-action authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 761954fc-a38f-4aa2-c27d-08da1150e131 x-ms-traffictypediagnostic: BL0PR11MB2914:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: SCoPAdIay4BnfgaMgJPlprxHBdh7i+khgAdUKnL7SIxUXA30sdJUADkeKXPsIiYQqyC1VIIakpAf/aq3mEmoxdaj6Bgl/ukiOwuXb4oZLiZjrh2xM1qJpL7kodPkOeskzCpvzssoGJynbKVsctQVeD9YZOaDzmYEw2GPn+q+tWTZuAYiUlnCdMXADirVBgJkb0IyMWlhhvJtk/blZxT6wOOdCGfY6livzX2HIaNVOkkVgL4KtyzypwhxGwxmEtGeP81255EOkZXbCec12TaMRwmi9e41aqlX0vEuROPT/I/H7nq5LpQrqDM89KGS7tTSNZr5kPjOyHXAtbM/viPH6umwTZKHg2+dl5N999KAKTiYHBe5lWx/+poEpQC2PSL5GKmXWAteiimoXjYYNBOPc3Qw8PJiz0lI1QyfaKtK478JG16zEgRiJ3lXdzMsXzIkMM2Az28nfDMlLWACQUBS/DSXrHJE7glziym7GrET/8OYbzJ2PsnA3F+74BW56KwG28g/uMRNwphtphh6iHOk6eJur9JeoYgt4uAAgYRadnojtNBfbXtWANs9koKD29T4V4azLOxkXMIUYFnTj0UXl3e0PDGw98h50X7dVCKApzcz0/iJzKOnCqTcBaa2VC6SpPkm3Oz+Idg92Pk1uocdF4TKuCPMMi97BhQxCG0dXM60Xl/3ydaq5dKuYS0EvxratX99T3SIBtgLoY/ngJfpueZUH4Oek/KrpshbwbCXI8I= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB5026.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(316002)(508600001)(6506007)(71200400001)(2906002)(83380400001)(38100700002)(8936002)(55016003)(5660300002)(110136005)(66476007)(7696005)(122000001)(54906003)(6636002)(82960400001)(4326008)(64756008)(66446008)(76116006)(66946007)(8676002)(38070700005)(52536014)(66556008)(9686003)(53546011)(33656002)(186003)(86362001)(26005)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?fxNuv5hVWOscoG29OxMmlavdUEYj1IXZBcVd3ECIeyu250cROoO37ZETXUeF?= =?us-ascii?Q?LNhYWVlhbGcyE2ld3VrDu59DbyLxP94Ppf4oxprxe+PSuFyZw64tX6OXEeiN?= =?us-ascii?Q?r9EzlexzkhZ5QCagVWlnq3V+Bulu9LqgI4iW6JUnTgssi/A7cL7YpRfWLdOs?= =?us-ascii?Q?LZCkC3UpI33q7hRfBmPMwLq4J6dRk9CDXOgVPh8A1Y3+J7/1yFoUw7G3gdNo?= =?us-ascii?Q?3b0NmbYG81pThowrFRDvT+5i9c/+hPnMmq+zzoF3hLImKeGKgayNtrUlK3dm?= =?us-ascii?Q?gVzAEzxpFWEhY4nyV20/lYuxaX9Rs0oshMCtzpwj4akgnomdkdsSpX+xRnei?= =?us-ascii?Q?AQPwLE49eYbpfUqgnJ4E2ccFvgMiFtKASlztTbDOjk2pP6BRioQoMRd5EUBU?= =?us-ascii?Q?d6nklQRNJUtfTp2CzN6zvcyEA49Jm3+Dm/kK9gwepV3zbaesKfeK/1EnPiyU?= =?us-ascii?Q?BSUHYgHZ4+mSTv83tVyUB+Yejn7f2xKdhVaMgej3kKKPSSsz9QSzBSC41G1/?= =?us-ascii?Q?22DhDnD4Yd+UwGkXfLsLCJlSTFSi4rGL3WfiYBY5BtwaqQbM5gWmFUU2Fuo8?= =?us-ascii?Q?cGsv6v6t/UeQjVmHADCDQldM+cX9s/IpdaJmayxG6X8I6GtIP5Gde+tNdZ6v?= =?us-ascii?Q?TH6b9dp1Q6GTPCC+Ww3u3aCEJVoq5VkRAirBXKZD2Yhwz+9ClNq5mJVk0RN+?= =?us-ascii?Q?WRcXHIxZ+KT8SWa/aP9flQAf1T3EnfcSYd425r+cOAUAngYE+R/AyhMggkOq?= =?us-ascii?Q?1AXQQ2y8ve5Hpw/r5oQrekjFTQWonPGdTEua+wqTWEW3O7YbGGmbYBJjVvM4?= =?us-ascii?Q?I6pHL6ZKE7PSyUCUIpwhCI3F8JoNRDzn9SqOdKTrC0AQOj10QG0WkguZxEYN?= =?us-ascii?Q?FVwAPjn0rYn5J1f1nFABr3FU77Js2e395U86oR+BdZiZqQs8QNxskspkYgkU?= =?us-ascii?Q?tepVocBcha04bWKNTnMqrd/x0SppdAGB2XSd78wa1tbGEwQ9abaxfJj5xLuz?= =?us-ascii?Q?ORJvBAZ83vPd3ddhLkeAj8io+d2wByDpc2h4v3gUD552b4ONGQ4knJXx5ScD?= =?us-ascii?Q?NCs5C3SgtmNDHxbDOCuM47xHwjoIgz2Uctt3L5x5iiNW3FdOIRnm3xzUr1y+?= =?us-ascii?Q?IDKOAd0CuC3t8Blzu4bXR+ix4kE6B3ThrPTFp9VPXb2Hw3V7qOXIlJUnucdc?= =?us-ascii?Q?7WNncOIfsVDkxu4Xgnk57RMwLnPK9X8Ni+uKkrtcz3PyNoNPV1VFZH//Myxh?= =?us-ascii?Q?h5IkwM92S1PBHu4fOpr2xSi5syIS3lCRhKnQTn5RUI2mJ7Ip4MgH8sV5EuZS?= =?us-ascii?Q?i3+dunBCOrUa+MN+acHEDUw6/Bn9vKrH0EkhN5ajry9HG7WcjmbdQecy0jTT?= =?us-ascii?Q?Z25CSp7//V8lJBHVk28MuEG+S9/bThDgFN2KBOF3fu2gi54/OSBpMgDHG9ZZ?= =?us-ascii?Q?saEPsvsBzsC4/L4BhdybrozcJpY/nfAK8Umn/w6rsZ2QRifpKqiDFHyHIDhR?= =?us-ascii?Q?HT/zQpHQoXAwul3Bymwa2eIIwqhMjdcWKJzjccU14LoAZJxjuUXLOVSLXRRA?= =?us-ascii?Q?V0iHEPSDekhbuCKlZfA1EQcpsPnf2yFuvLZSBNanW8znXW1hFNuEdfr5SCys?= =?us-ascii?Q?u3mzr6fNn/rLYo+kZGlZzGvgOKmn5hKHUWOxw6rhOYTQ3JwT0WuOdx6Ww/AE?= =?us-ascii?Q?HBqzRNx4dT/r49GV/fIXG8F0JTWzX9vlcgWCSE8v+L/oAiopXqvwPxkvRCoE?= =?us-ascii?Q?1R2lfwcCzw=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5026.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 761954fc-a38f-4aa2-c27d-08da1150e131 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Mar 2022 06:53:49.8599 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QLwVtr3Mf8N3GNsMQt8NmbmJzgv8VZd+O2gmKytC+tatcSF/WBGJtV8yUBGWiDx/oA+BAqZHKxeoNDOcI7Kavg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR11MB2914 Return-Path: yuanhao.xie@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Guo, Sorry for the late response. Just as we discussed today, and also from the suggestions by Ray, in the ne= w patch I will=20 1. changed "UNIVERSAL_PAYLOAD_ DEBUG_PRINT_ERROR_LEVEL" to "UEFI_PAYLOAD_DE= BUG_PRINT_ERROR_LEVEL", and=20 2. add a comment referencing Debuglib.h to declare bits for "ErrorLevel" pa= rameters. The reason why better not just declare those common bits is becau= se it can cause confusion if other developers still use the rest. What do you think? Thanks, Yuanhao -----Original Message----- From: Dong, Guo =20 Sent: Tuesday, March 29, 2022 12:00 PM To: Xie, Yuanhao ; devel@edk2.groups.io Cc: Ni, Ray ; You, Benjamin ; Rho= des, Sean Subject: RE: [PATCH 1/2] UefiPayloadPkg: Add a new DebugPrintErrorLevelLib = instance I replied in another email. It looks the comments are not addressed in this= patch, especially on this comment: In the DebugPrintErrorLevel.h, ErrorLevel is defined as UINT32, but its usa= ge is not clear for bootloaders ( so need add more info in the header file) Thanks, Guo -----Original Message----- From: Xie, Yuanhao Sent: Sunday, March 27, 2022 10:59 PM To: devel@edk2.groups.io Cc: Dong, Guo ; Ni, Ray ; Maurice Ma = ; You, Benjamin ; Rhodes, Sea= n Subject: [PATCH 1/2] UefiPayloadPkg: Add a new DebugPrintErrorLevelLib inst= ance It consumes the HOB defined in UefiPayloadPkg/Include/Guid/DebugPrintErrorLevel.h, and allow bootloader t= o config DebugPrintErrorLevel. Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Cc: Sean Rhodes Signed-off-by: Yuanhao Xie --- UefiPayloadPkg/Include/Guid/DebugPrintErrorLevel.h = | 27 +++++++++++++++++++++++++++ UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibH= ob.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++++++ UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibH= ob.inf | 39 +++++++++++++++++++++++++++++++++++++++ UefiPayloadPkg/UefiPayloadPkg.dec = | 2 +- 4 files changed, 144 insertions(+), 1 deletion(-) diff --git a/UefiPayloadPkg/Include/Guid/DebugPrintErrorLevel.h b/UefiPaylo= adPkg/Include/Guid/DebugPrintErrorLevel.h new file mode 100644 index 0000000000..9a3f4eb28e --- /dev/null +++ b/UefiPayloadPkg/Include/Guid/DebugPrintErrorLevel.h @@ -0,0 +1,27 @@ +/** @file + Define the structure for Debug Print Error Level Guid Hob. + +Copyright (c) 2022, Intel Corporation. All rights reserved.
+SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef UNIVERSAL_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL_H_ +#define UNIVERSAL_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL_H_ + +#include +#include + +#pragma pack (1) + +typedef struct { + UNIVERSAL_PAYLOAD_GENERIC_HEADER Header; + UINT32 ErrorLevel; +} UNIVERSAL_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL; + +#pragma pack() + +#define UNIVERSAL_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL_REVISION 1 + +extern GUID gEdkiiDebugPrintErrorLevelGuid; #endif diff --git a/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintEr= rorLevelLibHob.c b/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugP= rintErrorLevelLibHob.c new file mode 100644 index 0000000000..18378249ab --- /dev/null +++ b/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorL +++ evelLibHob.c @@ -0,0 +1,77 @@ +/** @file + Debug Print Error Level library instance that retrieves + the DebugPrintErrorLevel from bootloader. + + Copyright (c) 2022, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#include +#include +#include +#include +#include +#include +#include +#include + +STATIC UINT32 gDebugPrintErrorLevel; +STATIC BOOLEAN gDebugPrintErrorLevelInitialized =3D FALSE; +/** + Returns the debug print error level mask for the current module. + + @return Debug print error level mask for the current module. + +**/ +UINT32 +EFIAPI +GetDebugPrintErrorLevel ( + VOID + ) +{ + VOID *GuidHob; + UNIVERSAL_PAYLOAD_GENERIC_HEADER *GenericHeader; + UNIVERSAL_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL *DebugPrintErrorLevel; + + if (!gDebugPrintErrorLevelInitialized) { + gDebugPrintErrorLevelInitialized =3D TRUE; + gDebugPrintErrorLevel =3D PcdGet32(PcdDebugPrintErrorLevel); + GuidHob =3D GetFirstGuidHob (&gEdkiiDebugPrintErrorLevelGuid); + if (GuidHob !=3D NULL) { + GenericHeader =3D (UNIVERSAL_PAYLOAD_GENERIC_HEADER *)GET_GUID_HOB_D= ATA (GuidHob); + if ((sizeof (UNIVERSAL_PAYLOAD_GENERIC_HEADER) < GET_GUID_HOB_DATA_S= IZE (GuidHob))=20 + && (GenericHeader->Length <=3D GET_GUID_HOB_DATA_SIZE (GuidHob))= ) { + if (GenericHeader->Revision =3D=3D UNIVERSAL_PAYLOAD_DEBUG_PRINT_E= RROR_LEVEL_REVISION) { + DebugPrintErrorLevel =3D (UNIVERSAL_PAYLOAD_DEBUG_PRINT_ERROR_L= EVEL *)GET_GUID_HOB_DATA (GuidHob); + if (DebugPrintErrorLevel->Header.Length > UNIVERSAL_PAYLOAD_SIZE= OF_THROUGH_FIELD (UNIVERSAL_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL, ErrorLevel)) { + gDebugPrintErrorLevel =3D DebugPrintErrorLevel->ErrorLevel; =20 + } + } + }=20 + } + } + return gDebugPrintErrorLevel; +} + +/** + Sets the global debug print error level mask fpr the entire platform. + + @param ErrorLevel Global debug print error level. + + @retval TRUE The debug print error level mask was sucessfully= set. + @retval FALSE The debug print error level mask could not be se= t. + +**/ +BOOLEAN +EFIAPI +SetDebugPrintErrorLevel ( + UINT32 ErrorLevel + ) +{ + // + // This library uinstance does not support setting the global debug=20 +print error + // level mask. + // + return FALSE; +} diff --git a/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintEr= rorLevelLibHob.inf b/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/Debu= gPrintErrorLevelLibHob.inf new file mode 100644 index 0000000000..0845b5a2f4 --- /dev/null +++ b/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorL +++ evelLibHob.inf @@ -0,0 +1,39 @@ +## @file +# Debug Print Error Level library instance that retrieves # the=20 +DebugPrintErrorLevel from bootloader. +# +# Copyright (c) 2022, Intel Corporation. All rights reserved.
# # +SPDX-License-Identifier: BSD-2-Clause-Patent # ## + +[Defines] + INF_VERSION =3D 0x00010005 + BASE_NAME =3D DebugPrintErrorLevelLibHob + FILE_GUID =3D c3fead6d-bd4c-4131-bd5f-4bbceecc0fef + MODULE_TYPE =3D BASE + VERSION_STRING =3D 1.0 + LIBRARY_CLASS =3D DebugPrintErrorLevelLib + +# +# VALID_ARCHITECTURES =3D IA32 X64 EBC +# + +[Sources] + DebugPrintErrorLevelLibHob.c + +[Packages] + MdePkg/MdePkg.dec + MdeModulePkg/MdeModulePkg.dec + UefiPayloadPkg/UefiPayloadPkg.dec + +[LibraryClasses] + PcdLib + HobLib + +[Pcd] + gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel + +[Guids] + gEdkiiDebugPrintErrorLevelGuid diff --git a/UefiPayloadPkg/UefiPayloadPkg.dec b/UefiPayloadPkg/UefiPayload= Pkg.dec index 4051172caf..5c1aeb8235 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dec +++ b/UefiPayloadPkg/UefiPayloadPkg.dec @@ -31,7 +31,7 @@ =20 ##include/Guid/BootManagerMenu.h gEdkiiBootManagerMenuFileGuid =3D { 0xdf939333, 0x42fc, 0x4b2a, { 0xa5, = 0x9e, 0xbb, 0xae, 0x82, 0x81, 0xfe, 0xef }} - + gEdkiiDebugPrintErrorLevelGuid =3D { 0xad82f436, 0x75c5, 0x4aa9, {=20 + 0x92, 0x93, 0xc5, 0x55, 0x0a, 0x7f, 0xf9, 0x71 }} gUefiAcpiBoardInfoGuid =3D {0xad3d31b, 0xb3d8, 0x4506, {0xae, 0x71, 0x= 2e, 0xf1, 0x10, 0x6, 0xd9, 0xf}} gUefiSerialPortInfoGuid =3D { 0x6c6872fe, 0x56a9, 0x4403, { 0xbb, 0x98,= 0x95, 0x8d, 0x62, 0xde, 0x87, 0xf1 } } gLoaderMemoryMapInfoGuid =3D { 0xa1ff7424, 0x7a1a, 0x478e, { 0xa9, 0xe4,= 0x92, 0xf3, 0x57, 0xd1, 0x28, 0x32 } } -- 2.30.0.windows.1