Updated CpuFlushCacheLine() to return the address flushed.
authorbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 16 Jun 2006 07:02:23 +0000 (07:02 +0000)
committerbxing <bxing@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 16 Jun 2006 07:02:23 +0000 (07:02 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@535 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/BaseLib/Ia32/FlushCacheLine.asm
MdePkg/Library/BaseLib/X64/FlushCacheLine.asm

index d79f21761054967cebaeb54d31ff84059cad0630..c1e6466d04a8312a336d91e454b5d3d0537f9bce 100644 (file)
@@ -27,7 +27,7 @@
     .code\r
 \r
 ;------------------------------------------------------------------------------\r
-; VOID\r
+; VOID *\r
 ; EFIAPI\r
 ; AsmFlushCacheLine (\r
 ;   IN      VOID                      *LinearAddress\r
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