]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseCacheMaintenanceLib/x86Cache.c
Code scrub:
[mirror_edk2.git] / MdePkg / Library / BaseCacheMaintenanceLib / x86Cache.c
index 7e744698e38c18c90e0206180ea6f38f43a789a4..1fc2b95daa999c25f32b6c038d487f4460fe5d6b 100644 (file)
@@ -64,7 +64,7 @@ InvalidateInstructionCache (
 \r
   @param  Length  The number of bytes to invalidate from the instruction cache.\r
 \r
-  @return Address\r
+  @return Address of cache invalidation.\r
 \r
 **/\r
 VOID *\r
@@ -120,7 +120,7 @@ WriteBackInvalidateDataCache (
   @param  Length  The number of bytes to write back and invalidate from the\r
                   data cache.\r
 \r
-  @return Address\r
+  @return Address of cache invalidation.\r
 \r
 **/\r
 VOID *\r
@@ -139,6 +139,9 @@ WriteBackInvalidateDataCacheRange (
   }\r
 \r
   Start = (UINTN)Address;\r
+  //\r
+  // Calculate the cache line alignment\r
+  // \r
   End = (Start + Length + (CACHE_LINE_SIZE - 1)) & ~(CACHE_LINE_SIZE - 1);\r
   Start &= ~(CACHE_LINE_SIZE - 1);\r
 \r
@@ -189,7 +192,7 @@ WriteBackDataCache (
                   mode, then Address is a virtual address.\r
   @param  Length  The number of bytes to write back from the data cache.\r
 \r
-  @return Address\r
+  @return Address of cache wrote in main memory.\r
 \r
 **/\r
 VOID *\r
@@ -246,7 +249,7 @@ InvalidateDataCache (
                   then Address is a virtual address.\r
   @param  Length  The number of bytes to invalidate from the data cache.\r
 \r
-  @return Address\r
+  @return Address of cache invalidation.\r
 \r
 **/\r
 VOID *\r