From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.2572.1646451639086391757 for ; Fri, 04 Mar 2022 19:40:39 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=J9iDyK71; spf=pass (domain: intel.com, ip: 192.55.52.151, 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=1646451639; x=1677987639; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=xpIEd1vJkHZhF8944OSGfKN75EEpALOWEWFTJBK82ro=; b=J9iDyK71HlTKTs0qdl6/tYHIE+fPzifTbdn42TOBAQKyLLLcSPi3bnno 3Wkosbn0khdKF+eTaNnHwzQ9t3HZghpyElbwlHI79kpZbCBLKnb1HEkwR ux5hH2smLLLPIiLgWvJwc9tNlwq9hzupR5rGphcrZXp2NvljJnJWhR/ku BjMs71Dj6vf69b7j6zye1v9DgpzA5udpOBFzmxf3mwGAu/WUNGWRiipBX hQ8cKko/I4OhfCzwaPjMmAykbf4Af0+rb2wuV6NyeHcsuVp9g9fAtA34e 1Epd6rflcCwEEjTMCswaKOp6TfBqoPKS1yO8QSH7kJ00/AtE7kg7u5SOj g==; X-IronPort-AV: E=McAfee;i="6200,9189,10276"; a="234717055" X-IronPort-AV: E=Sophos;i="5.90,157,1643702400"; d="scan'208";a="234717055" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Mar 2022 19:40:38 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,157,1643702400"; d="scan'208";a="687062508" Received: from orsmsx606.amr.corp.intel.com ([10.22.229.19]) by fmsmga001.fm.intel.com with ESMTP; 04 Mar 2022 19:40:38 -0800 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) 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.21; Fri, 4 Mar 2022 19:40:37 -0800 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) 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.21 via Frontend Transport; Fri, 4 Mar 2022 19:40:37 -0800 Received: from NAM04-MW2-obe.outbound.protection.outlook.com (104.47.73.174) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.21; Fri, 4 Mar 2022 19:40:37 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vajb1yETgIXY+qKJQ3yU6iT/iu/pgUfUR1IwOtyIENds5TksBQl/HBcynN5crwaeuWM0YkAxIqF1kxROxiGoYfUp61OynJSeLXOJOlXFCh5X4uEUzK7fQKkBZrVCMu0JBa3wZmGBReHg/gQbClXHSf5Er/03CoHGcILp8A3SJQOeaVU8ZpOQeUEtKXYOYAVcnlpHwWJMwMeaKCQyLJzPhgPpYqCJXXmb5DPi1AeMqCYdhTYMizHyCGpb+10lCs/4jGj6y6wmsQ/dsITkbWc1tHJJWcrpObb//uNBFlyp6xvRYTpGvR5TaIEpGMaNbi9D629ifMy9U8WZegPIiH65fA== 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=pDguI8f8COrLuCxcWhd67gMm4DAJ5MuZTIxPIacMRHA=; b=a/a3aBrVJjhjT41KT7Zggl5uN7FoTjA03T49mHjE1k6vML12zz9Ujmn68U14YkvemXA93h4YyADdLyR1DELFXzzqQ4QNZrObOB7jr+KP4N39f1jka0g3ijCl+OLvqLYnU2Cor3KDVGesr4qeqMU58kYPZyDkEHDZF4lugkLFQLARlv7YsfwGiYkMbFUkr5uo1v3lL4pxmvUvy8NO+WnA36NObjfWifAkBukU9lNLrm9rKiAEzuig7RULKQOlWrknpBqf4HI0nz07uUWzbid2YG67HiwSjEHLFemwqYcoe10CDbtzsAKmGYDUA1lSNUBbJ/DMAk8qtEtyeu3DD+LPuQ== 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 BYAPR11MB3622.namprd11.prod.outlook.com (2603:10b6:a03:fe::30) by SN6PR11MB3421.namprd11.prod.outlook.com (2603:10b6:805:cd::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.14; Sat, 5 Mar 2022 03:40:35 +0000 Received: from BYAPR11MB3622.namprd11.prod.outlook.com ([fe80::45c8:c9c6:42a:a43d]) by BYAPR11MB3622.namprd11.prod.outlook.com ([fe80::45c8:c9c6:42a:a43d%4]) with mapi id 15.20.5038.014; Sat, 5 Mar 2022 03:40:35 +0000 From: "Guo Dong" To: "Ni, Ray" , "Rhodes, Sean" , "devel@edk2.groups.io" CC: "Rhodes, Sean" , "Ma, Maurice" , "You, Benjamin" Subject: Re: [PATCH] UefiPayloadPkg: Add build option for Above 4G Memory Thread-Topic: [PATCH] UefiPayloadPkg: Add build option for Above 4G Memory Thread-Index: AQHYKQkM5BiPnuiEZU+G8NA6hJO4nKyqH+CAgAYTg/A= Date: Sat, 5 Mar 2022 03:40:35 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.401.20 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: 9f8d4eb7-6a33-4a5d-db31-08d9fe59e83d x-ms-traffictypediagnostic: SN6PR11MB3421: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: qEQBsewlHlMM/okP7aVr9LgXV1DkAzVZqsq57A7/A+BhTCxM7qqPEWsNqceqgdwAAxA1Qs20F3CPTnbbc/MISenO3zba+9oORWd4B69HM0+kqrd8YRsZv5V+ZzVLH7u0nDImwSIcPVr3cXrgJwg9x/4KP+aawNYZ7mTNwmbb64Z0MdbO1qbVRnlDDI/ieNlfncqfNOSHV+w95fqcqPNaeU8mBPa8lXFX8stzRuYQySlFlWaEQuQliJvrBV0PP7C42T1M1l7kw8Zy9uT7Wz8VBO7o94OvoLzrm7zgAkF/oCFl+t+ePVA103ECWzEYhegXQgEEoe3fkVjqp9JC2dEOAkDngFU8jntmD0UaVb9T4IPwCAFzPXUybvi/cGYXUL5craASVCGsrt3GCMo75cCD/m7oXn7tDxlS079D7skMRR2ePNx+9YmbG+1T7EtLGF8cpn7AaUso9rjizgoHIQI12AdfF5crnNrfTUKyQ+rikLS5dftls5rMhpWF4qfECJMnS2yrsofiWt0QL6H8PhxHIwOYp0rzZooQAsf41j7bn+8UCLbZ8xZL7tgte8lfItLeANSDpGzDmubnb3l+nQFxLZLV+msFO4UmUt2R2HSRyrdTosfctzZxSfFwjzYhoeIoQkpHbvKZckXIgDqIp2zch6Ye30X0m9yHr/MUm7dhtmTAi6SZxlfO32FGEoaBNqj+QinPpgvovIdJlSn7VAfUHQHBCMzl5ASdTxdC7XHGWWEK4tPQ9QN7f8br0Epm25DZAD834hrQ1Ic/ku8OIp/C/htWjYxI47UGVeLFMdY2LUk= 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)(110136005)(53546011)(55016003)(83380400001)(316002)(966005)(8936002)(86362001)(54906003)(52536014)(186003)(19627235002)(38070700005)(33656002)(7696005)(6506007)(82960400001)(122000001)(71200400001)(5660300002)(107886003)(76116006)(38100700002)(508600001)(8676002)(66946007)(64756008)(4326008)(66446008)(66476007)(9686003)(66556008)(2906002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?IVDpuiYuetLdmmqMDZcxpRMAopQgHBy6BEuecyp0YFFMF9QywGkD3EXyVCem?= =?us-ascii?Q?o2r3hmsFV8M9OIlK5Fbrkg+NnmIP/WdUN2ZKdEJEUbeelhW++TYN6dbWvdmh?= =?us-ascii?Q?ZQEyLPeJaMOpQ10JcbNc8TS3CKasfRABocKNmzm8l0RXT10UV7a2KkQSP9AB?= =?us-ascii?Q?mrSHo3vE15aJi/ioEnZD2LvOzGBKqWVVr6SGImQiGfQceXBY6aFR9QTaGQCw?= =?us-ascii?Q?8bNqeq1UiwSVwWDFYYTNHVooCO9Zapz5SdSdrZEIr9guS1VvJLUoUErldNdv?= =?us-ascii?Q?gbq8g+eMMJAgfes09UHPHc+WbTYq29UO0VGKFFzuuMXcRqF/bbdM9xl3ihS1?= =?us-ascii?Q?Mr/mBycVdwfGzEzqfxCSXbOFUDps7LVeXaV8xLkBF5G9caHkbiRzfcFbEMdU?= =?us-ascii?Q?cltxGysbYv44FPW987YX90OvJt8tmmIFYf16aR/jtbV4mSKc0Heodk2CXBe0?= =?us-ascii?Q?W2qhugcW5M0tabv0dqc1+PlgJnJgiSkXd0Kh8GlBWIZggMA025kcw0wS505C?= =?us-ascii?Q?sznekXl3vMN0B12lVMkH/x4GOGY/eOvhInnpp6bEtbL41f/lKX47+COd0mx5?= =?us-ascii?Q?hsRnAGZ4Ardj7MKdou5gMa21q5TlHV7CHGRWme97fT08wxsXkrLsIQEX/g02?= =?us-ascii?Q?ChCIFl4zxP8IvHG/2ycfd4aRal9JifzxQT7QBGCx3+8zn3U3bomCs7urbN16?= =?us-ascii?Q?GLVgo8BiLITShX1AEgFhThefABxJkDNcJuKggMcmOuSJyAF6Kt/UisgSarGZ?= =?us-ascii?Q?2dcfZaAtTpxD3IiNZIMifze5yMPFvPfsCGORe+IRiOUphsQJ+ffCJT4yYCPG?= =?us-ascii?Q?jLa5IYdZCOfLT86z0yOl54c6euRbID0nnva7fOXvS87HioiKZ5kjiMjd2eg3?= =?us-ascii?Q?3hIJDKd11AOzYuLSiOwPq6ToVC+ICMuggxkK005JoUdUwu5aD8fgVS9Sa5KR?= =?us-ascii?Q?lCM02GiaS4g4/U4jvYvPgO1IkBWtSESjO8l6yMpgfGMcwIoeaUgqZ6duyDa3?= =?us-ascii?Q?oSsqgSEzsN5xHru2u6W4ML3YZHltHgLRYaM4s8YziFa1bh+6VKdQ3HK0BRQn?= =?us-ascii?Q?0mNni9pA7ktfmddY/r7wTxdWsM4GbnYpe61cI8dOOEZh5r9BbBl0mcwi5OBq?= =?us-ascii?Q?3Y2752ciz9ND2kQqwRpMwU9qbQJFJ02j18S43zSDwok/H+c08K+LZc35gF1o?= =?us-ascii?Q?EiRdnK+25Dy+x1Tsa9pyf1jXMGAvC6CdFIWmMnfKSb5Fa/QZ0aAGciuqqnTd?= =?us-ascii?Q?C4P5Hg45hT+kaZrrvESFe4PuITIcYTypcsV3P5CMfsTcEbqMLqI68hfTLXsQ?= =?us-ascii?Q?VRj7sOpPWizP/1A8F0Aht922x3bePtEf+kFZS3YJmSetnQHMizQ6Fb9R8HIv?= =?us-ascii?Q?S6hpZRbxKVgcGyubksuzdTsEYyopB1KwpzGxF6piCXoTvlqh26bpBQ9T1MB3?= =?us-ascii?Q?3a0pTAuZ9fOc20BzDzDCJR3XJYCc53E9QvihoJYhWDrSxDiG/kPXDMQT/rTX?= =?us-ascii?Q?26XTuX9newKnsmg9sMJpLV74Nl1RYjLcYnXNBUs6XxrGu1MOkiuIY1weUbb1?= =?us-ascii?Q?+n0Z5kKzPZbRTt9Z29b3CbnwXJsOWrDW21NVdSLN2PetXGtepy0ZnHQPCglv?= =?us-ascii?Q?tHJrhM3cqqC/z2pHQxZ1GGccDXbtNDwxoSAZpiTbcCx1LAQ/hey3Z/cOUnuN?= =?us-ascii?Q?x7hShx5FChltokwzZxGFu8pF8VA=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: 9f8d4eb7-6a33-4a5d-db31-08d9fe59e83d X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Mar 2022 03:40:35.0298 (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: lvfKEvCk0Kz7+mtvUVaDv/0t800d/0OSZGs/q9zcjhF0kpJXNL3SoreGYB6zBEyU7Hr14mT1oqsbunlKQTSt2Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR11MB3421 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 It was merged https://github.com/tianocore/edk2/commit/091b6a11970a447106aadb6538046a85d3= f29df5 -----Original Message----- From: Ni, Ray =20 Sent: Monday, February 28, 2022 11:53 PM To: Rhodes, Sean ; devel@edk2.groups.io Cc: Dong, Guo ; Rhodes, Sean ; M= a, Maurice ; You, Benjamin Subject: RE: [PATCH] UefiPayloadPkg: Add build option for Above 4G Memory Reviewed-by: Ray Ni -----Original Message----- From: Sean Rhodes Sent: Thursday, February 24, 2022 7:00 AM To: devel@edk2.groups.io Cc: Dong, Guo ; Rhodes, Sean ; N= i, Ray ; Ma, Maurice ; You, Benjami= n Subject: [PATCH] UefiPayloadPkg: Add build option for Above 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. Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Signed-off-by: Sean Rhodes --- .../UefiPayloadEntry/UefiPayloadEntry.c | 39 +++++++++++++++++++ .../UefiPayloadEntry/UefiPayloadEntry.inf | 7 ++++ UefiPayloadPkg/UefiPayloadPkg.dec | 3 ++ UefiPayloadPkg/UefiPayloadPkg.dsc | 3 ++ 4 files changed, 52 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c b/UefiPaylo= adPkg/UefiPayloadEntry/UefiPayloadEntry.c index 0fed1e3691..780348eadf 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.c @@ -5,10 +5,44 @@ =20 **/ =20 +#include #include "UefiPayloadEntry.h" =20 STATIC UINT32 mTopOfLowerUsableDram =3D 0; =20 +EFI_MEMORY_TYPE_INFORMATION mDefaultMemoryTypeInformation[] =3D { + { EfiACPIReclaimMemory, FixedPcdGet32 (PcdMemoryTypeEfiACPIReclaimMemo= ry) }, + { EfiACPIMemoryNVS, FixedPcdGet32 (PcdMemoryTypeEfiACPIMemoryNVS) = }, + { EfiReservedMemoryType, FixedPcdGet32=20 + (PcdMemoryTypeEfiReservedMemoryType) }, + { EfiRuntimeServicesData, FixedPcdGet32=20 + (PcdMemoryTypeEfiRuntimeServicesData) }, + { EfiRuntimeServicesCode, FixedPcdGet32=20 + (PcdMemoryTypeEfiRuntimeServicesCode) }, + { EfiMaxMemoryType, 0 = } +}; + +/** + Function to reserve memory below 4GB for EDKII Modules. + + This causes the DXE to dispatch everything under 4GB and allows=20 + Operating + System's that require EFI_LOADED_IMAGE to be under 4GB to start. + e.g. Xen hypervisor used in Qubes. +**/ +VOID +ForceModulesBelow4G ( + VOID + ) +{ + DEBUG ((DEBUG_INFO, "Building hob to restrict memory resorces to=20 + below 4G.\n")); + + // + // Create Memory Type Information HOB + // + BuildGuidDataHob ( + &gEfiMemoryTypeInformationGuid, + mDefaultMemoryTypeInformation, + sizeof (mDefaultMemoryTypeInformation) + ); +} + /** Callback function to build resource descriptor HOB =20 @@ -438,6 +472,11 @@ _ModuleEntryPoint ( // Build other HOBs required by DXE BuildGenericHob (); =20 + // Create a HOB to make resources for EDKII modules below 4G + if (!FixedPcdGetBool (PcdDispatchModuleAbove4GMemory)) { + ForceModulesBelow4G (); + } + // Load the DXE Core Status =3D LoadDxeCore (&DxeCoreEntryPoint); ASSERT_EFI_ERROR (Status); diff --git a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf b/UefiPay= loadPkg/UefiPayloadEntry/UefiPayloadEntry.inf index 1847d6481a..c4e4339ede 100644 --- a/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf +++ b/UefiPayloadPkg/UefiPayloadEntry/UefiPayloadEntry.inf @@ -86,8 +86,15 @@ gUefiPayloadPkgTokenSpaceGuid.PcdPayloadFdMemSize gUefiPayloadPkgTokenSpaceGuid.PcdBootloaderParameter gUefiPayloadPkgTokenSpaceGuid.PcdSystemMemoryUefiRegionSize + gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiACPIMemoryNVS + gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiACPIReclaimMemory + gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiReservedMemoryType + gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesData + gUefiPayloadPkgTokenSpaceGuid.PcdMemoryTypeEfiRuntimeServicesCode =20 gEfiMdeModulePkgTokenSpaceGuid.PcdSetNxForStack ## SOMETIM= ES_CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdDxeNxMemoryProtectionPolicy ## SOMETIM= ES_CONSUMES gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy ## SOMETIM= ES_CONSUMES =20 + gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory + diff --git a/UefiPayloadPkg/UefiPayloadPkg.dec b/UefiPayloadPkg/UefiPayload= Pkg.dec index 551f0a4915..e9204d1168 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dec +++ b/UefiPayloadPkg/UefiPayloadPkg.dec @@ -83,6 +83,9 @@ gUefiPayloadPkgTokenSpaceGuid.PcdSystemMemoryUefiRegionSi= ze|0x04000000|UINT32|0x =20 gUefiPayloadPkgTokenSpaceGuid.PcdPcdDriverFile|{ 0x57, 0x72, 0xcf, 0x80, 0= xab, 0x87, 0xf9, 0x47, 0xa3, 0xfe, 0xD5, 0x0B, 0x76, 0xd8, 0x95, 0x41 }|VOI= D*|0x00000018 =20 +# Above 4G Memory +gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|TRUE|BOOLE +AN|0x00000019 + ## FFS filename to find the default variable initial data file. # @Prompt FFS Name of variable initial data file gUefiPayloadPkgTokenSpaceGuid.PcdNvsDataFile |{ 0x1a, 0xf1, 0xb1, 0xae, 0= x42, 0xcc, 0xcf, 0x4e, 0xac, 0x60, 0xdb, 0xab, 0xf6, 0xca, 0x69, 0xe6 }|VOI= D*|0x00000025 diff --git a/UefiPayloadPkg/UefiPayloadPkg.dsc b/UefiPayloadPkg/UefiPayload= Pkg.dsc index 1ce96a51c1..4fe81a61d6 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.dsc +++ b/UefiPayloadPkg/UefiPayloadPkg.dsc @@ -33,6 +33,7 @@ DEFINE UNIVERSAL_PAYLOAD =3D FALSE DEFINE SECURITY_STUB_ENABLE =3D TRUE DEFINE SMM_SUPPORT =3D FALSE + DEFINE ABOVE_4G_MEMORY =3D TRUE # # SBL: UEFI payload for Slim Bootloader # COREBOOT: UEFI payload for coreboot @@ -399,6 +400,8 @@ gEfiMdePkgTokenSpaceGuid.PcdPerformanceLibraryPropertyMask | 0x1 !endif =20 + =20 + gUefiPayloadPkgTokenSpaceGuid.PcdDispatchModuleAbove4GMemory|$(ABOVE_4 + G_MEMORY) + [PcdsPatchableInModule.X64] gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister|$(RTC_INDEX_REGISTER) gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister|$(RTC_TARGET_REGISTER= ) -- 2.32.0