]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Drivers/CpuDxe/CpuDxe.c
ArmPkg/CpuDxe: ignore attribute changes during SyncCacheConfig()
[mirror_edk2.git] / ArmPkg / Drivers / CpuDxe / CpuDxe.c
index 5aa5b874144ac08ac80da3503fe4756d832b6ba1..5e923d45b71531ba5947135f161024228a27b5e6 100644 (file)
@@ -17,6 +17,7 @@
 \r
 #include <Guid/IdleLoopEvent.h>\r
 \r
+BOOLEAN                   mIsFlushingGCD;\r
 \r
 /**\r
   This function flushes the range of addresses from Start to Start+Length\r
@@ -261,7 +262,9 @@ CpuDxeInitialize (
   // and that calls EFI_CPU_ARCH_PROTOCOL.SetMemoryAttributes, so this code needs to go\r
   // after the protocol is installed\r
   //\r
+  mIsFlushingGCD = TRUE;\r
   SyncCacheConfig (&mCpu);\r
+  mIsFlushingGCD = FALSE;\r
 \r
   // If the platform is a MPCore system then install the Configuration Table describing the\r
   // secondary core states\r