From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web12.203.1643415234626473047 for ; Fri, 28 Jan 2022 16:13:54 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=RsTP0FiR; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: guo.dong@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1643415234; x=1674951234; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=5qOPkLBRPkrM+daZ+tuJl3OQylinITk+/VS3pmyYLFY=; b=RsTP0FiRafULsKBkqMk7Nuv1EGY2vCkeULtiaRv66WOVkUkol+BZU00i z1Pq39U2lAAeGbyeNy25KxbBfMu6h7O0flbjnRwk9dg5aAFGcVOC/Wpn3 mBrOzqQlaLfFBq4GJKmslkLBZPRV4XIPhpCE2yqs6+xLmJ+Zn7w4NpiJe H5xmNsDlAj3z5iTfX698AMVCJt3Cg9LwBDL5H/tUMuttzt8NOw8nIhS8M Kq1LYlsznwEqqqiCZmfrkFoY7Zv2Jus9UCkEoTmi8cJMX24xFBDRt3y0A 69ZxTQiQJn4ZjpmHqO4jM6mIQZxXsqoBk9GRTPj0dN1z0C7Jzrzt4iFl/ g==; X-IronPort-AV: E=McAfee;i="6200,9189,10241"; a="234607972" X-IronPort-AV: E=Sophos;i="5.88,325,1635231600"; d="scan'208";a="234607972" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jan 2022 16:13:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,325,1635231600"; d="scan'208";a="496292446" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga002.jf.intel.com with ESMTP; 28 Jan 2022 16:13:53 -0800 Received: from orsmsx606.amr.corp.intel.com (10.22.229.19) 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.20; Fri, 28 Jan 2022 16:13:53 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx606.amr.corp.intel.com (10.22.229.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Fri, 28 Jan 2022 16:13:53 -0800 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.41) 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.20; Fri, 28 Jan 2022 16:13:52 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BCa/KfhZd32kuouszZ8Zh+8KZJWsGf0y4cMstWYn696XcUyZu7KfrhETDHEA7cpsoxGoIittJA1PBsCeqIm5v4iPm3YvW02fiiJ+QMKg+LafHtGdXdSgWHsKcZAznQIvEEPfwhE/UEf5OhzX8NHrqvudb3Kz+H/upe5hYo/ewQSNXKGG9nyqPdTjs7K+VqtCxiNvCrE1KaoQN//rf7RLQYf1ejTnUqbZTHqgAhqHthvfnH6N8h9TDamikp/cRFNcLJxD45Zu1zg2BoPZfIoMTCE5YSRnXZtJC30NP1DQDfypGgelCJWJe+yZtksH3Xbq/I/5aQlkNWQZrm4fUq6bUQ== 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=jkn6uRIs6juBPaYFUPw8bvaYvjsCCH1kRNolenZdR7Q=; b=FitnCnXKADnIqxT+sITyUGjqL+v9FL/OSJFNVA2nxcz4WViEux5Pb9cdZEkvQBQpbYsoVarej6jl+nQnaaaHfQ5D7jUCm1tmzB4dxzWZiw8x7EeEx4LfGY1W3VGBza6Pp1iyhUaplhKpOhm+Lzi9JgdYNvPqQ07PUUfRnusVszftVpr/yfOHarjXfbCVqJ1DfsWNS7zl4BQZ64eCeuQ5G5vshMTFI/AyvdL/QEoET/oq/hq7zYBxS49Fqlh248w7NrDSdkUVnS3ttZxclZIhUO6g1Z7raMoEaPlcU9rSr+IhM7zJTIR/6Sti+sbLDu/9WUpkfQtNZ3/vi/DXifmSgA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from BYAPR11MB3622.namprd11.prod.outlook.com (2603:10b6:a03:fe::30) by BN6PR1101MB2194.namprd11.prod.outlook.com (2603:10b6:405:55::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4930.15; Sat, 29 Jan 2022 00:13:49 +0000 Received: from BYAPR11MB3622.namprd11.prod.outlook.com ([fe80::c461:5de1:9cf:23cf]) by BYAPR11MB3622.namprd11.prod.outlook.com ([fe80::c461:5de1:9cf:23cf%7]) with mapi id 15.20.4930.019; Sat, 29 Jan 2022 00:13:49 +0000 From: "Guo Dong" To: "devel@edk2.groups.io" , "Rhodes, Sean" Subject: Re: [edk2-devel] [PATCH 32/32] UefiPayloadPkg: Add build option for Above 4G Memory Thread-Topic: [edk2-devel] [PATCH 32/32] UefiPayloadPkg: Add build option for Above 4G Memory Thread-Index: AQHYFKEMoHdriOOw1keWc3wKlHQCdqx5HqNg Date: Sat, 29 Jan 2022 00:13:48 +0000 Message-ID: References: <9dd14fc91c174eae87fd122c7ac70073a363527f.1643403631.git.sean@starlabs.systems> <496801044bee6eec3aad6ddf4a9c823daeb13b9f.1643403631.git.sean@starlabs.systems> In-Reply-To: <496801044bee6eec3aad6ddf4a9c823daeb13b9f.1643403631.git.sean@starlabs.systems> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 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: a7406a01-4d65-44a9-6781-08d9e2bc3937 x-ms-traffictypediagnostic: BN6PR1101MB2194:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: IpHWGdUHQGj46ZF45ZevDQPEUipu975Isj/HmIAw5FVyXboTfMHWbVAEf26dXXEmj3NwcZxd/XWYqLf6v6Gm0qH9AONG558V8RsAqSBk6wBH/s8jLI2duhCIpk4q75GP3opuPR8on9frSRBchBwFahkKg9VFO75WV/tDB8C2Ix92485vhMOOdFO9QZJoAkByQwYObvNq0Q5bLZN82xWzvw9L10spy9vAeXJobJV2qUC0qE2RPCuI8aEvayo6r/bqZj4spuNSI6iXGMEPmcEJiDkvEeXMUZicHsM34Awgc+0qWvusYLr4W1LpVGiKaCKG2zelzllbYJGw0nzyHasmwozS0EyTZxpsBKcbivo46VDqLlw4FgreUh6djMjqZqrt2kcDSF6vf2Crw7O4u8jGKIY3spKzZV2U4WPXgLY65fCwQOTB8onEJdllHo7ymf3rWhSUbhctjxVyl5E3SsycJ4praYEX3agtOVXgYIX+VUfY5wGi9ySRCxHhb7Z5IzZ3L79mKRHByyOGguu00fMUiqgOyxYDxTTAYA4j5owhuVk8THlg+L74bVe/JfrFlFyFAogXLOVHXnnuqY3/J3E6+H1tKPAIWhJagPHpiydX648ND1tHH0b4zXeNSYnTGvvQCN0tasWKn3X1R30Nc7bxNtSRxBBeC6+jotEfeX96aQ/Ugr7b4slGrEjfXcWCc/AN9AA+EzFZpy9Jkm9yf3l/Wqgoe9d1ldufhCW+NmnExjMK9X16vtUXYWcYu8lIXlJtw79f8VkZpv4ZakZWOtrcwC0rY9C8FHyfq9nLAiXaF+s9u7XJkYU6wKhm6xwRSKoRjbaCS2q/mU7PbzJbZPTv5w== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR11MB3622.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(366004)(7696005)(33656002)(6506007)(38100700002)(9686003)(966005)(55016003)(71200400001)(19627235002)(110136005)(82960400001)(316002)(53546011)(508600001)(26005)(8936002)(8676002)(66946007)(76116006)(2906002)(66556008)(83380400001)(38070700005)(86362001)(66476007)(186003)(66446008)(52536014)(64756008)(5660300002)(122000001)(20210929001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?z8W6Jsr2VzlfGyvC1zBqTrXJZBEpHoym23YTvmA/EQamfC38RkBRbTk6/zi7?= =?us-ascii?Q?vR4pOvIlakKkS4dhk7Blw9Jgynes+ivXqZQYpAtgqZogM2WOkrRigW+JEcz2?= =?us-ascii?Q?ep+wdfcHW7RTDgKtbiuCJuC1Q5J7Hsi47n4r0hHM5lzJHNRX8tRVM2YI2SQP?= =?us-ascii?Q?nxfE/pLBfQtSGnbypbnVrp6pT5tFR6KUSD9xqkWr1WjZyu8jlOgNBdYqkY2g?= =?us-ascii?Q?Nk+Fj9wUixmCA7mf0DMOKS23r3x35ZldFeAdXQBPA3a1Iq8xh15n3Ro9+s4M?= =?us-ascii?Q?LSP5HYIIg/gvRcBpYiGXzQRRQoHxDl5xZtiDH4tpXdPup92eDA7Os+8TXjck?= =?us-ascii?Q?hoOZmWbGjwsb7JZupCGQRT3e4S1cQFW3rw1dPfsW9H+sQxY6ol9uFNfmdHym?= =?us-ascii?Q?GjVEBfOHjJdVoBHtRQxh1z4eJ2iUKoTcTBPaWF5QTXl6oC+mXMvToMLCsDU2?= =?us-ascii?Q?7mUGTKYnHGOSaSclNa911/s979nNbicN2ghMqH244lkfgUYUI6mtyfYxhU7W?= =?us-ascii?Q?KC1ZOTTnyQAzqU06wG3AOFkjGAQGsmiCbnAJiHeXuS6sOb0uLqAPsSDz9Iw0?= =?us-ascii?Q?1Xca+RGWBxZeKRSIiWVfVIeMqC8Do1Sm7/ivstlqUytYLFKvlKCijJh3qVli?= =?us-ascii?Q?CS0TFGOuvb7PUhetWLKswMOrl2/t1OSkmH99a69+LC0hanQdJruTlvRUF1y8?= =?us-ascii?Q?Pb0SDZAWECyWchlGogIy85T17HAZd6EpqxOcIFbhIgX7lKkKwvxggwhkX8l8?= =?us-ascii?Q?xqYaIoe0yJu3B2WLeo/8/LYfDeDXpRa0u5zUz9Tw2H5ggrE4MpdAmiY1/1wc?= =?us-ascii?Q?6++x5USGpu4kHVnY82K5L9GgU2Hwb/0BbAJQIAt4PLkTBWPFF6W0dbljhl8g?= =?us-ascii?Q?cUm/ALlXEsfDN2eQ2ZoTbql+i45Xlwl8GZUR2U7UmufI5MVyN582P17yWt17?= =?us-ascii?Q?8SbF2G2HpNcyFG/EtdJ1y9c4NfLINhNtrzHfifn768yulOgDcV2cw7AKovx5?= =?us-ascii?Q?UlXhR2T7JlYjfY9R+0BUfHDB4qtcl6yRIcwrWn8MzvjBS1/QjgnNkpiL+q64?= =?us-ascii?Q?yK5Ti46yNUO1NxzaTSUcIRIvVYH2eddjcohKG9UYzzgYgjfrkEWEMQOwQqJ+?= =?us-ascii?Q?yDegjEHT88fho71zwwB2xfGcoGp5PTY7hiwi9LJW9938uk+16nyRQSdZE2hh?= =?us-ascii?Q?/ZCLDxx3IPSqh0t7uNmDw42IBY8J4cRXV5XumaNtVuHfU/wg07N75bGeajdT?= =?us-ascii?Q?gZf5ygSflbp1Bfl7t7V0nxat1k5mTcz+86Pv93Pt0wLVAVZt133yPpJrEBlq?= =?us-ascii?Q?gi+yuaj5IXvX+s3SnMusvflO7IOhiSF4UxK6fyhCxajFYRB0mNa6JKJ/pzdZ?= =?us-ascii?Q?QtJEmBfVnOetKmTuP9R3EPVGNUElg60PHI8bStp0IpAG9XFWqDsBbqI3hUbh?= =?us-ascii?Q?xdba823RcozA6d/KwIugOWOIuLCbhjZ4oLLNGwnpjK2Hn6iUJNRFbTS2IflZ?= =?us-ascii?Q?AACObQ7v0O7mG5womDij0QBI/SzZNCZQhS9JQrGeavnP8C87jybBKXnErjhw?= =?us-ascii?Q?0T9m5lZVwmF0gFwCrdU/DRqx8k4ZABOPQnRTuXmp8EMiVrlu8Jk3PI8xclYK?= =?us-ascii?Q?USrNEFAAL+5TZ0RveOWSETA=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB3622.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7406a01-4d65-44a9-6781-08d9e2bc3937 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jan 2022 00:13:49.0359 (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: x4w26SVKsse3GlNPqMT7JonIj4c51WEgXhIAvJosDBU1UWyeOV04RPCqt1Ai8lxPLrXOOlaz29RwSFzUiGKzHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1101MB2194 Return-Path: guo.dong@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Here are few comments: +gUefiPayloadPkgTokenSpaceGuid.PcdAbove4GMemory|1|UINT32|0x00000019 Based on usage, better change to BOOLEAN instead of UINT32 as below gUefiPayloadPkgTokenSpaceGuid.PcdAbove4GMemory|TRUE|BOOLEAN|0x00000019 +!if $(ABOVE_4G_MEMORY) =3D=3D TRUE + gUefiPayloadPkgTokenSpaceGuid.PcdAbove4GMemory|TRUE +!else + gUefiPayloadPkgTokenSpaceGuid.PcdAbove4GMemory|FALSE +!endif Simply change to below. gUefiPayloadPkgTokenSpaceGuid.PcdAbove4GMemory|$(ABOVE_4G_MEMORY) + if (FixedPcdGetBool (PcdAbove4GMemory) =3D=3D FALSE) { + ForceModulesBelow4G (); + } Following EDK2 coding style, BOOLEAN type should not compare with BOOLEAN c= onst. Change to=20 + if (!FixedPcdGetBool (PcdAbove4GMemory) ) { + ForceModulesBelow4G (); + } Thanks, Guo -----Original Message----- From: devel@edk2.groups.io On Behalf Of Sean Rhodes Sent: Friday, January 28, 2022 2:04 PM To: devel@edk2.groups.io Cc: Rhodes, Sean Subject: [edk2-devel] [PATCH 32/32] UefiPayloadPkg: Add build option for Ab= ove 4G Memory When build option ABOVE_4G_MEMORY is set to true, nothing will change and E= DKII will use all available memory. Setting it to false will create memory type information HOB in payload entr= y, so that EDKII will reserve enough memory below 4G for EDKII modules. Thi= s option is useful for bootloaders that are not fully 64-bit aware such as = Qubes R4.0.4 bootloader, Zorin and Proxmox. Signed-off-by: Sean Rhodes --- .../UefiPayloadEntry/UefiPayloadEntry.c | 41 +++++++++++++++++++ .../UefiPayloadEntry/UefiPayloadEntry.inf | 7 ++++ UefiPayloadPkg/UefiPayloadPkg.dec | 3 ++ UefiPayloadPkg/UefiPayloadPkg.dsc | 7 ++++ 4 files changed, 58 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c b/UefiPaylo= adPkg/UefiPayloadEntry/UefiPayloadEntry.c index 0fed1e3691..e343956a1a 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c @@ -5,10 +5,46 @@ **/ +#include #include "UefiPayloadEntry.h= " STATIC UINT32 mTopOfLowerUsableDram =3D 0; +/**+ Function to reserve = memory below 4GB for EDKII Modules.++ This causes the DXE to dispatch eve= rything under 4GB and allows Operating+ System's that require EFI_LOADED_= IMAGE to be under 4GB to start.+ e.g. Xen hypervisor used in Qubes++ @p= aram None++ @retval None+**/+VOID+ForceModulesBelow4G (+ VOID+ )+{+ DE= BUG ((DEBUG_INFO, "Building hob to restrict memory resorces to below 4G.\n"= ));+ EFI_MEMORY_TYPE_INFORMATION mDefaultMemoryTypeInformation[] =3D {+ = { EfiACPIReclaimMemory, FixedPcdGet32 (PcdMemoryTypeEfiACPIReclaimMemory= ) },+ { EfiACPIMemoryNVS, FixedPcdGet32 (PcdMemoryTypeEfiACPIMemor= yNVS) },+ { EfiReservedMemoryType, FixedPcdGet32 (PcdMemoryTypeEfiReser= vedMemoryType) },+ { EfiRuntimeServicesData, FixedPcdGet32 (PcdMemoryTyp= eEfiRuntimeServicesData) },+ { EfiRuntimeServicesCode, FixedPcdGet32 (Pc= dMemoryTypeEfiRuntimeServicesCode) },+ { EfiMaxMemoryType, 0 }= + };+ //+ // Create Memory Type Information HOB+ //+ BuildGuidDataHob = (+ &gEfiMemoryTypeInformationGuid,+ mDefaultMemoryTypeInformation,+ = sizeof(mDefaultMemoryTypeInformation)+ );+}+ /** Callback function to= build resource descriptor HOB @@ -438,6 +474,11 @@ _ModuleEntryPoint ( // Build other HOBs required by DXE BuildGenericHob (); + // Create a= HOB to make resources for EDKII modules below 4G+ if (FixedPcdGetBool (Pc= dAbove4GMemory) =3D=3D FALSE) {+ ForceModulesBelow4G ();+ }+ // Load = the DXE Core Status =3D LoadDxeCore (&DxeCoreEntryPoint); ASSERT_EFI_ER= ROR (Status);diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.= inf b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf index 1847d6481a..2ca47e3bb5 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf @@ -86,8 +86,15 @@ gUefiPayloadPkgTokenSpaceGuid.PcdPayloadFdMemSize gUefiPayloadPkgToken= SpaceGuid.PcdBootloaderParameter gUefiPayloadPkgTokenSpaceGuid.PcdSystemM= emoryUefiRegionSize+ gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiACPIMem= oryNVS+ gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory+ = gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType+ gUefiPay= loadPkgTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData+ gUefiPayloadPkg= TokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode gEfiMdeModulePkgToken= SpaceGuid.PcdSetNxForStack ## SOMETIMES_CONSUMES gEfiMdeMod= ulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy ## SOMETIMES_CONSUMES = gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy ## SOMETIMES= _CONSUMES + gUefiPayloadPkgTokenSpaceGuid.PcdAbove4GMemory+diff --git a/Ue= fiPayloadPkg/UefiPayloadPkg.dec b/UefiPayloadPkg/UefiPayloadPkg.dec index 551f0a4915..3915a0579b 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dec +++ b/UefiPayloadPkg/UefiPayloadPkg.dec @@ -83,6 +83,9 @@ gUefiPayloadPkgTokenSpaceGuid.PcdSystemMemoryUefiRegionSi= ze|0x04000000|UINT32|0x gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, = 0xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }|VO= ID*|0x00000018 +# Above 4G Memory+gUefiPayloadPkgTokenSpaceGuid.PcdAbove4GM= emory|1|UINT32|0x00000019+ ## FFS filename to find the default variable ini= tial data file. # @Prompt FFS Name of variable initial data file gUefiPayl= oadPkgTokenSpaceGuid.PcdNvsDataFile |{ 0x1a, 0xf1, 0xb1, 0xae, 0x42, 0xcc, = 0xcf, 0x4e, 0xac, 0x60, 0xdb, 0xab, 0xf6, 0xca, 0x69, 0xe6 }|VOID*|0x000000= 25diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPaylo= adPkg.dsc index 1ce96a51c1..9fda5f652e 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -33,6 +33,7 @@ DEFINE UNIVERSAL_PAYLOAD =3D FALSE DEFINE SECURITY_STUB_ENA= BLE =3D TRUE DEFINE SMM_SUPPORT =3D FALSE+ DEFI= NE ABOVE_4G_MEMORY =3D TRUE # # SBL: UEFI payload for= Slim Bootloader # COREBOOT: UEFI payload for coreboot@@ -399,6 +400,12 @= @ gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1 != endif +!if $(ABOVE_4G_MEMORY) =3D=3D TRUE+ gUefiPayloadPkgTokenSpaceGuid.P= cdAbove4GMemory|TRUE+!else+ gUefiPayloadPkgTokenSpaceGuid.PcdAbove4GMemory= |FALSE+!endif+ [PcdsPatchableInModule.X64] gPcAtChipsetPkgTokenSpaceGuid.= PcdRtcIndexRegister|$(RTC_INDEX_REGISTER) gPcAtChipsetPkgTokenSpaceGuid.P= cdRtcTargetRegister|$(RTC_TARGET_REGISTER)--=20 2.32.0 -=3D-=3D-=3D-=3D-=3D-=3D Groups.io Links: You receive all messages sent to this group. View/Reply Online (#86184): https://edk2.groups.io/g/devel/message/86184 Mute This Topic: https://groups.io/mt/88757870/1781375 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [guo.dong@intel.com] -=3D= -=3D-=3D-=3D-=3D-=3D