]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Drivers/CpuDxe/Arm/Mmu.c
ArmPkg/CpuDxe: ARM: ignore page table updates that only change permissions
[mirror_edk2.git] / ArmPkg / Drivers / CpuDxe / Arm / Mmu.c
index b6ba975b353ab66540457d9b1a49d00db8f44319..89e429925ba92cf0ef6da7ea8eb9cd5135b2b5ce 100644 (file)
@@ -680,6 +680,13 @@ SetMemoryAttributes (
 {\r
   EFI_STATUS    Status;\r
 \r
+  //\r
+  // Ignore invocations that only modify permission bits\r
+  //\r
+  if ((Attributes & EFI_MEMORY_CACHETYPE_MASK) == 0) {\r
+    return EFI_SUCCESS;\r
+  }\r
+\r
   if(((BaseAddress & 0xFFFFF) == 0) && ((Length & 0xFFFFF) == 0)) {\r
     // Is the base and length a multiple of 1 MB?\r
     DEBUG ((EFI_D_PAGE, "SetMemoryAttributes(): MMU section 0x%x length 0x%x to %lx\n", (UINTN)BaseAddress, (UINTN)Length, Attributes));\r