]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuDxe/CpuPageTable.c
UefiCpuPkg/CpuDxe: fix bad boot performance
[mirror_edk2.git] / UefiCpuPkg / CpuDxe / CpuPageTable.c
index 90d9823838138955f32613464d06de9395e507a5..a33ac5519e68cb733f334ceef264e103ce4293eb 100644 (file)
@@ -597,7 +597,6 @@ DisableReadOnlyPageWriteProtect (
   )\r
 {\r
   AsmWriteCr0 (AsmReadCr0() & ~BIT16);\r
-  SyncMemoryPageAttributesAp (SyncCpuDisableWriteProtection);\r
 }\r
 \r
 /**\r
@@ -609,7 +608,6 @@ EnableReadOnlyPageWriteProtect (
   )\r
 {\r
   AsmWriteCr0 (AsmReadCr0() | BIT16);\r
-  SyncMemoryPageAttributesAp (SyncCpuEnableWriteProtection);\r
 }\r
 \r
 /**\r