From: Jian J Wang Date: Thu, 27 Sep 2018 06:56:58 +0000 (+0800) Subject: Nt32Pkg/Nt32Pkg.dsc: override PCD default to avoid boot failure X-Git-Tag: edk2-stable201903~930 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=2b55b922e965cc4df69bafd64e467dcd51f54f79 Nt32Pkg/Nt32Pkg.dsc: override PCD default to avoid boot failure REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1215 This issue is caused by commit 5267926134d17e86672b84fd57b438f05ffa68e1. The reason is this commit changed the condition of building page table in DxeIpl. The code before it will only build page table for the sake of PcdSetNxForStack. This commit added PcdImageProtectionPolicy and PcdDxeNxMemoryProtectionPolicy into the logic. But the default value of PcdImageProtectionPolicy is 02, which means the DxeIpl should build page table. Due to the fact that Nt32Pkg doesn't support page table at all, this will cause exception on Windows OS. This patch solves this issue by setting PcdImageProtectionPolicy to 0 explicitly in Nt32Pkg.dsc. Cc: Ruiyu Ni Cc: Hao Wu Cc: Star Zeng Cc: Jiewen Yao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jian J Wang Reviewed-by: Ruiyu Ni Reviewed-by: Star Zeng --- diff --git a/Nt32Pkg/Nt32Pkg.dsc b/Nt32Pkg/Nt32Pkg.dsc index fcd833858d..58d9f8787d 100644 --- a/Nt32Pkg/Nt32Pkg.dsc +++ b/Nt32Pkg/Nt32Pkg.dsc @@ -265,6 +265,7 @@ gEfiMdeModulePkgTokenSpaceGuid.PcdVariableCollectStatistics|TRUE [PcdsFixedAtBuild] + gEfiMdeModulePkgTokenSpaceGuid.PcdImageProtectionPolicy|0x00000000 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizeNonPopulateCapsule|0x0 gEfiMdeModulePkgTokenSpaceGuid.PcdMaxSizePopulateCapsule|0x0 gEfiMdePkgTokenSpaceGuid.PcdDebugPrintErrorLevel|0x80000040