Updated CpuFlushCacheLine() to return the address flushed.
[mirror_edk2.git] / MdePkg / Library / BaseLib / X64 / FlushCacheLine.asm
index 1d470e8753e34d0d378e8f229529f895d6119061..9978e734aa52e40b430e762e7f524c96f9256067 100644 (file)
@@ -24,7 +24,7 @@
     .code\r
 \r
 ;------------------------------------------------------------------------------\r
-; VOID\r
+; VOID *\r
 ; EFIAPI\r
 ; AsmFlushCacheLine (\r
 ;   IN      VOID                      *LinearAddress\r
@@ -32,6 +32,7 @@
 ;------------------------------------------------------------------------------\r
 AsmFlushCacheLine   PROC\r
     clflush [rcx]\r
+    mov     rax, rcx\r
     ret\r
 AsmFlushCacheLine   ENDP\r
 \r