]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiIoLibCpuIo/IoLib.c
Refine the code.
[mirror_edk2.git] / MdePkg / Library / PeiIoLibCpuIo / IoLib.c
index e3622e632970119e8c6984cb5639e81ea2fc9623..913092193787fe6e883df0cf8c9e3fd1f2546218 100644 (file)
@@ -1,5 +1,5 @@
 /** @file\r
-  I/O Library.\r
+  I/O Library. The implementations are based on EFI_PEI_SERVICE->CpuIo interface.\r
 \r
   Copyright (c) 2006, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
@@ -521,7 +521,7 @@ MmioRead64 (
   //\r
   // Make sure Address is aligned on a 64-bit boundary.\r
   //\r
-  ASSERT ((Address & 7) == 0);\r
+  ASSERT ((Address & 7) == (sizeof (UINT64) - 1));\r
   return CpuIo->MemRead64 (PeiServices, CpuIo, (UINT64) Address);\r
 \r
 }\r