Disable Page Table Protection.
Effectively disables the PT protection created by:2ac1730bf2
,147fd35c3e
, and41b4600c30
. This fixes macOS boot issues.
This commit is contained in:
committed by
Matt DeVillier
parent
768fe7365f
commit
147c02d66e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user