]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiIoLibCpuIo/IoLib.c
Fix the wrong fixing for hardcore value 7.
[mirror_edk2.git] / MdePkg / Library / PeiIoLibCpuIo / IoLib.c
index e047ffa639fea2980e70210c1e9dd9b4ac43cbb9..066ceddbfb339b96c1476d4296bae87d4fa8bd08 100644 (file)
@@ -521,7 +521,7 @@ MmioRead64 (
   //\r
   // Make sure Address is aligned on a 64-bit boundary.\r
   //\r
-  ASSERT ((Address & 7) == (sizeof (UINT64) - 1));\r
+  ASSERT ((Address & (sizeof (UINT64) - 1)) == 0);\r
   return CpuIo->MemRead64 (PeiServices, CpuIo, (UINT64) Address);\r
 \r
 }\r