Disable Page Table Protection.

Effectively disables the PT protection created by: 2ac1730bf2, 147fd35c3e, and 41b4600c30.

This fixes macOS boot issues.
This commit is contained in:
ReddestDream
2018-02-11 17:19:00 -05:00
committed by Matt DeVillier
parent 768fe7365f
commit 147c02d66e
2 changed files with 0 additions and 11 deletions

View File

@ -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;
}

View File

@ -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.