From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.493.1648657346736729680 for ; Wed, 30 Mar 2022 09:22:27 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=h7g4elbq; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648657346; x=1680193346; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=aleGkw2fm/PknnuWtyRXdYuK2/rUwCFO3dIWiru7Euw=; b=h7g4elbqagGI101EdGakFhM11PlqE8TyEOmsw4pHikHg5hLqWMdKZw/x ZqTzt5dEsGQoBKgEV/5vRAunh7tmbb6tEAzjLZWebRHLDbPDLxPtoW0bP aeC2T4+3hph6M9oZRtGZmC3atNu9cGPtZhewvpxZzzl30YTef8mftdBVV h23JZ6qtlk+pSLnDQS2UDy/3TPQ6Qk+zSNzMzkPplAJyBsbz4HUUkNTjK DsOLm95P7d78B3Svc/KzVKc4UjySJ/B2ENdmfzpKhIOrPGcZX4UjxMM7V XHqjXHOIoDqFCdeGOrTjhp0qLR7BrF8EiH+0dzvZYgJPaW0qxlr2ach/w w==; X-IronPort-AV: E=McAfee;i="6200,9189,10302"; a="346021418" X-IronPort-AV: E=Sophos;i="5.90,223,1643702400"; d="scan'208";a="346021418" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2022 09:22:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,223,1643702400"; d="scan'208";a="503371758" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga003.jf.intel.com with ESMTP; 30 Mar 2022 09:22:26 -0700 Received: from orsmsx602.amr.corp.intel.com (10.22.229.15) 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; Wed, 30 Mar 2022 09:22:25 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.27 via Frontend Transport; Wed, 30 Mar 2022 09:22:25 -0700 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.172) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Wed, 30 Mar 2022 09:22:24 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DX5ZFEId5xUlNHz81o4sha53jFuvXmZ7sPcLglaKDnV6U1BPhGpsbAciI6E1GbkcU74OyCv/DMmAc5/MZj3fGnRwi4dlKy3TNqaTr7nZeAaC983I+c5F3s7yNefDyZz7IOmAUAxcFOB7cfVuAe7aVGxPNFvCpu/HKSynucdWNp92y0TSd0cxH4jhyk31a5bIXPkpD8lBeVJcj7QR6Y+txtbkYgZYFF38dHKVBAYnMfa3P/1OUzMYsrutUWFFkruXWu5/nHS+vHS21268ydkAYYGxuG2xOl2Qro+2hBQN7H4w55voqubXTIrGebNJdeBVcbfFARFt2iyXcSizEnVDSA== 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=03xijIlGvZxSOVmYAIETYKByl+PWfp89RUmWjtJkgXw=; b=J8sQNPdnqpp7BWhJgRVe4hkv2ZG0owDq9aWoJLrcP5abVgBODB87jVFrMgeNN8ip8Cj14d0QFw762r4gVouV+fy1ZlSre3wngujAVH5gS7UbmDBjUi99zoVeXve6Edk8CCNcUHUck4w3Yy/A21XLlySbvLJFuTdqQij4/IBQ17Wi3Ue1jlmRYkmkgXMipaxkOtTOj77m+wAWaMRYUU9tMTZTbDHa4Zs00DFmlqe3MCnWdJmlNbwPzxPvWGxdV5NmEJWeud51huO8wrfyTCeVyS/iM1lhAmb4fGgGspw0LfwYI/dbxznM7qNxdq/vOvB5F+vNEmxaHAh33PLrwoVnHg== 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 MWHPR11MB1631.namprd11.prod.outlook.com (2603:10b6:301:10::10) by MN2PR11MB3616.namprd11.prod.outlook.com (2603:10b6:208:ed::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5123.19; Wed, 30 Mar 2022 16:22:21 +0000 Received: from MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::a88a:3f13:4d9:3127]) by MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::a88a:3f13:4d9:3127%11]) with mapi id 15.20.5123.019; Wed, 30 Mar 2022 16:22:21 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "Xie, Yuanhao" CC: "Dong, Guo" , "Ma, Maurice" , "You, Benjamin" , "Rhodes, Sean" Subject: Re: [edk2-devel] [Patch V2 1/2] UefiPayloadPkg: Add a new DebugPrintErrorLevelLib instance Thread-Topic: [edk2-devel] [Patch V2 1/2] UefiPayloadPkg: Add a new DebugPrintErrorLevelLib instance Thread-Index: AQHYRBb5KuZUfWv+x0OQCC/eMOUdwqzYHG6A Date: Wed, 30 Mar 2022 16:22:21 +0000 Message-ID: References: <20220330091649.793-1-yuanhao.xie@intel.com> In-Reply-To: <20220330091649.793-1-yuanhao.xie@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: 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: 1fb3fa20-a71f-4a1d-9ed8-08da126977be x-ms-traffictypediagnostic: MN2PR11MB3616: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: LvXJ7gjBy85Q3WZFOMEuDDFuFxswyDCVGTYm13YQNGfr92ap2DLIAKnIMzMP/M6RkCrF1EcNv0/tZcDmLKHLZ1q/oJ+mdBNmK6JDsVdCKLJRAcy5Q+9iMsPpBBpqh6KxlycNEWLyrM5zddtYA0KepDvuvlchFI1rFy854J4PQTZQXd8VhohZk6Vvi/2areMFqfmZaUSwlln6HDClioXntR/8U/M8ZDUSM7fosnIYEmuR097gbQN09uBYqsbJaQGEriHuKAABETt3Y2pHjTEfIt384e3xaOQTYZU87R3hUGKEd/O4KJYZ7Dgh24uBvK7yQVJIqgPu2Wya+b5zUSgWmFGV32nMjGWWVBRYywHXDgo77nuEmAElXbDBHcC8FMHj8SNgBNwfGCDANVNyx74sJDOTFwHblK4fVvkfYsrwx8ePeFswsvlEC8+Zl3McWS2kdfvj2Nh2GxWacyqv6wSt/bbmwlw77sdNbBb2Nr2DjNIx6GnyKCAJNY2Y8OykeaLRKp/5yguZKDEHyOvfljIO4GmUaQb/gk5ADoKDjZ2FBjo3iJST96m2bnajRowDFcAsco+nXJr4j3xdKZJXYNYpexCNPSa8sH/cs+DBfNguihUMkUbvDDs+Hb8ipv+9os48d0uMrzH6UpVaN9ljRxseRL+OX+gEyiK+tPzhIBeDD91XslkcBFLKPRD6ePiTaGwHz4EV8Wn1sEHfG/Rg704qQmVbfFuXex5Za/9wdy23DdykJqRAQsm33vgukyXoTI6WHmqwQNXy/4IB52TISPBFjkqqiV0uf09NkpQDGXQMJZ/JWIvwwJlxvs3h68nPdHwhWaZJV5/jbAH88CzxwlHS/bMl6UWBAjlrii1FYRRamAw= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1631.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(86362001)(9686003)(8676002)(33656002)(53546011)(82960400001)(66556008)(54906003)(7696005)(83380400001)(76116006)(66446008)(66946007)(6636002)(6506007)(110136005)(66476007)(64756008)(38100700002)(316002)(5660300002)(4326008)(52536014)(55016003)(122000001)(186003)(2906002)(26005)(966005)(508600001)(8936002)(71200400001)(38070700005)(213903007);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?vGZEhMIHeDura9waWHoB3Eno4JE1etkx0RdDXSL3VnqtKsm5hQMkalQ13MmJ?= =?us-ascii?Q?+4JXM9Tr2XhpkSXTcziDCtWLXbIHvGtCB+IVuwgwc4f1BTmuH+BGIqUry79f?= =?us-ascii?Q?hrQEqXeSQtchiHDyuTWgzZipA7FzhlXrlQbD8xKhvN0OhcPhGMprWNR/mnjS?= =?us-ascii?Q?3yzbWMn6xBLSKxpplIUYDhNi7E5cnY2V1fStq33IAL6dBH+qPh81H/EX5H5X?= =?us-ascii?Q?Cnff+thPLR1uzofzPRmvPJyFNeH6qGxTyIRYNAWO3nYJDZEwEH1WKFvW7242?= =?us-ascii?Q?HAYP63xmd7Lqxu0liTRO8CzpCIRc25NG7TQpCEH1p4V1VwvFXBkK77pdyE2/?= =?us-ascii?Q?MJt4iXVPEyeWlIU6Y5Mi02QQdYx6EZ+/7TexdI/B296NZJOjit2tmoAvfz9z?= =?us-ascii?Q?6ALNOcc6V4inQVL31FlDIU/UP8nWXDUMo2g2Lo+deqVflA+hqXV9oqxcA/wa?= =?us-ascii?Q?PawlCPHFbdSjyPdRv31CQPOFzsgn9wGJOjcL0/ZMXkExMUy1eXD8TOH4YCxA?= =?us-ascii?Q?VXcS3hw6CIwCf6/Y5Ea4vILPRFweg3qiTgcUlcYTs77UU3RFN0wbh0G4R+f4?= =?us-ascii?Q?ZrCRj406kacbJxFxi5xZW2sntswJdw1R/LkSAPR/60EWE38LxBNGKDmbeEaM?= =?us-ascii?Q?OTBfRVLMHwwGOZlhaiocEIVoL8BSj6kHLqJbebolaSw3qfgyt9etd5suimaY?= =?us-ascii?Q?Dde6HzgEnXNR82m8/PCwMFyoSSffznq+xexn89FfrprSEFD1d/XWdO/Y3yRA?= =?us-ascii?Q?LzmV8Lv9gVx/S4fQHOWXRL5H7Yy+mISZUAh4B7Yh76rl6DHvZFIVYY9OnGQT?= =?us-ascii?Q?t9jP4mA00Ir23Dn1AgrqqsQHwv2dqPnO+awBmCPBNxKaR53l2onzOfjKRpy+?= =?us-ascii?Q?pvRG0By40M/V3ImN1fJ0COTtpLZ+mKUiKwG+bMxcUIOj/4RUaTd/aXjXUCzN?= =?us-ascii?Q?nCVf0ImaWPVWaIRp4d4PYB3TxtpQ8OG4YnSfTe+9ZrAorNqRtyuFxWa0Zw1n?= =?us-ascii?Q?ebiehgwI+JXKzLYwlzz9bMB70TopbVwRXpPiCt7bwggMH8Or1J+pf5zTmncx?= =?us-ascii?Q?d/2K40PBaOerOqLro9mad1iQjh954ZrritPL/IDyZFUgFd8UK6wnd2nfG91z?= =?us-ascii?Q?Z8Em9sVWoMz6JeM6XQ4+8vKezfNjzDk1LLZdKiD7TPTnCGQW7xDPQhiR22u+?= =?us-ascii?Q?yW5qKwUmy8n+QG1z4WXcL6fBjDxO+SxN57x2iQYt7hMyL23s6vQS9X+rnSOf?= =?us-ascii?Q?bweTLzIU36AJlRlZ/M7VBTxaqOrkqiRXNtVbCl+1oYzGyzqrnHuEbk12LE4j?= =?us-ascii?Q?tSAUqW7zLAvS5isbW8zzhWwDVDtI55SGmunmuW8ucaZR/8Zh6gfPX57KaGh9?= =?us-ascii?Q?bwkmDi4LvL3zrynGLor1gdTgZ0eZFNednpBw7FuJPctPMfNRqByUhv5zdjx4?= =?us-ascii?Q?PSS8LU47qwIUfP0bakK8QXi44LfBlWVkv3ZCkUYzpX7NuvBPoSQ6u493d6tS?= =?us-ascii?Q?hwTFzCEiGrpoNf/g8paEvsyntXPPmjukb3QjFL5nOpWdEHGYBr5UCUF9gllF?= =?us-ascii?Q?7hYOqoyNXkqLm6q63VdwfeCBXSarVYHALOASzVfkEZiOssWWkwlX4wINBuKj?= =?us-ascii?Q?CqxcnFr9Mz31v+dR0Tg+gJkjdzPrDumLipHi7JzyzsRGZGIaIe1gtCBN2g7h?= =?us-ascii?Q?43ASx+kKw2UdfEHk8oSC/BjRs/LQdWp4B5/UkcwYHueKeFCPm2ye6lmmZQAT?= =?us-ascii?Q?m9M0DavEaQ=3D=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1631.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1fb3fa20-a71f-4a1d-9ed8-08da126977be X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Mar 2022 16:22:21.4631 (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: CFdds0l9S3ANTaz+5U2mF8XXP3TabXzM/TVrr6HYdq+5ycCgzxBhNa0/apQ+oKjMOtDzBrf2RCDv573kLSXjmg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3616 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni -----Original Message----- From: devel@edk2.groups.io On Behalf Of Yuanhao Xie Sent: Wednesday, March 30, 2022 5:17 PM To: devel@edk2.groups.io Cc: Dong, Guo ; Ni, Ray ; Maurice Ma = ; You, Benjamin ; Rhodes, Sea= n Subject: [edk2-devel] [Patch V2 1/2] UefiPayloadPkg: Add a new DebugPrintEr= rorLevelLib instance It consumes the HOB defined in UefiPayloadPkg/Include/Guid/DebugPrintErrorLevel.h, and allow bootloader to 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 = | 31 +++++++++++++++++++++++++++++++ UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibH= ob.c | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++= ++++++++++++++ UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLevelLibH= ob.inf | 39 +++++++++++++++++++++++++++++++++++++++ UefiPayloadPkg/UefiPayloadPkg.dec = | 2 +- 4 files changed, 148 insertions(+), 1 deletion(-) diff --git a/UefiPayloadPkg/Include/Guid/DebugPrintErrorLevel.h b/UefiPaylo= adPkg/Include/Guid/DebugPrintErrorLevel.h new file mode 100644 index 0000000000..5bc84039db --- /dev/null +++ b/UefiPayloadPkg/Include/Guid/DebugPrintErrorLevel.h @@ -0,0 +1,31 @@ +/** @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) +// +// ErrorLevel: The error level of the debug message. +// Bits for ErrorLevel is declared in=20 +// edk2\MdePkg\Include\Library\DebugLib.h +// +typedef struct { + UNIVERSAL_PAYLOAD_GENERIC_HEADER Header; + UINT32 ErrorLevel; +} UEFI_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..7f087e5c06 --- /dev/null +++ b/UefiPayloadPkg/Library/DebugPrintErrorLevelLibHob/DebugPrintErrorLeve= lLibHob.c @@ -0,0 +1,77 @@ +/** @file + Debug Print Error Level library instance that retrieves=20 + 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 (UEFI_PAYLOAD_DEBUG_PRINT_ERROR_LEVEL = *)GET_GUID_HOB_DATA (GuidHob); + if (DebugPrintErrorLevel->Header.Length > UNIVERSAL_PAYLOAD_SIZE= OF_THROUGH_FIELD (UEFI_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 prin= t 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/DebugPrintErrorLeve= lLibHob.inf @@ -0,0 +1,39 @@ +## @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 +# +## + +[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, { 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 } } --=20 2.30.0.windows.1