From 6fe251ad5cb3cbb68ee183ea45ee16da40efcb6f Mon Sep 17 00:00:00 2001 From: bxing Date: Fri, 16 Jun 2006 07:02:23 +0000 Subject: [PATCH] Updated CpuFlushCacheLine() to return the address flushed. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@535 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseLib/Ia32/FlushCacheLine.asm | 2 +- MdePkg/Library/BaseLib/X64/FlushCacheLine.asm | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/MdePkg/Library/BaseLib/Ia32/FlushCacheLine.asm b/MdePkg/Library/BaseLib/Ia32/FlushCacheLine.asm index d79f217610..c1e6466d04 100644 --- a/MdePkg/Library/BaseLib/Ia32/FlushCacheLine.asm +++ b/MdePkg/Library/BaseLib/Ia32/FlushCacheLine.asm @@ -27,7 +27,7 @@ .code ;------------------------------------------------------------------------------ -; VOID +; VOID * ; EFIAPI ; AsmFlushCacheLine ( ; IN VOID *LinearAddress diff --git a/MdePkg/Library/BaseLib/X64/FlushCacheLine.asm b/MdePkg/Library/BaseLib/X64/FlushCacheLine.asm index 1d470e8753..9978e734aa 100644 --- a/MdePkg/Library/BaseLib/X64/FlushCacheLine.asm +++ b/MdePkg/Library/BaseLib/X64/FlushCacheLine.asm @@ -24,7 +24,7 @@ .code ;------------------------------------------------------------------------------ -; VOID +; VOID * ; EFIAPI ; AsmFlushCacheLine ( ; IN VOID *LinearAddress @@ -32,6 +32,7 @@ ;------------------------------------------------------------------------------ AsmFlushCacheLine PROC clflush [rcx] + mov rax, rcx ret AsmFlushCacheLine ENDP