From 147c02d66eb44678d724b539fe07d38e90be24f7 Mon Sep 17 00:00:00 2001 From: ReddestDream Date: Sun, 11 Feb 2018 17:19:00 -0500 Subject: [PATCH] Disable Page Table Protection. Effectively disables the PT protection created by: 2ac1730bf2a51d6d0483347a0218e1768d6d7992, 147fd35c3e389ecd025dbfd243312bf5b22da7c9, and 41b4600c308d13fc90cef308c8fbb8f0e15f4e5f. This fixes macOS boot issues. --- MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 6 ------ MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 5 ----- 2 files changed, 11 deletions(-) diff --git a/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c b/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c index 0bf99bc77e..5dc40c97aa 100644 --- a/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c +++ b/MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c @@ -149,12 +149,6 @@ Create4GPageTablesIa32Pae ( ); } - // - // Protect the page table by marking the memory used for page table to be - // read-only. - // - EnablePageTableProtection ((UINTN)PageMap, FALSE); - return (UINTN) PageMap; } diff --git a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c index cf3c3f94d8..80978e7919 100644 --- a/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c +++ b/MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c @@ -805,11 +805,6 @@ CreateIdentityMappingPageTables ( ); } - // - // Protect the page table by marking the memory used for page table to be - // read-only. - // - EnablePageTableProtection ((UINTN)PageMap, TRUE); // // Set IA32_EFER.NXE if necessary.