X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FSwapBytes64.asm;h=7647880202c47691637ce59a6f6d83d529667ab0;hb=1efcc4ae46f52e3845923ffbab68426e068709d2;hp=72e366bd4d05c3a06ecca93abb44e385b218cdad;hpb=185d764218d07c06838d4758125a5ca66178e7c9;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm b/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm index 72e366bd4d..7647880202 100644 --- a/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm +++ b/MdePkg/Library/BaseLib/Ia32/SwapBytes64.asm @@ -21,13 +21,20 @@ ; ;------------------------------------------------------------------------------ - .586P + .586 .model flat,C .code +;------------------------------------------------------------------------------ +; UINT64 +; EFIAPI +; InternalMathSwapBytes64 ( +; IN UINT64 Operand +; ); +;------------------------------------------------------------------------------ InternalMathSwapBytes64 PROC - mov eax, [esp + 8] - mov edx, [esp + 4] + mov eax, [esp + 8] ; eax <- upper 32 bits + mov edx, [esp + 4] ; edx <- lower 32 bits bswap eax bswap edx ret