X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FIa32%2FReadMsr64.asm;h=9a3e11ccca908f6c636b8802c215ec415f81fd14;hp=6c9fe000339403286eb19169021dd5cdeac66359;hb=3f566587aea64bb986866c7f69a6b82891bf59db;hpb=31a9215c3223d3818d1709f39d06774e18df103f diff --git a/MdePkg/Library/BaseLib/Ia32/ReadMsr64.asm b/MdePkg/Library/BaseLib/Ia32/ReadMsr64.asm index 6c9fe00033..9a3e11ccca 100644 --- a/MdePkg/Library/BaseLib/Ia32/ReadMsr64.asm +++ b/MdePkg/Library/BaseLib/Ia32/ReadMsr64.asm @@ -21,24 +21,10 @@ ; ;------------------------------------------------------------------------------ - .586P - .model flat + .586p + .model flat,C .code -;------------------------------------------------------------------------------ -; UINT32 -; EFIAPI -; AsmReadMsr32 ( -; IN UINT32 Index -; ); -;------------------------------------------------------------------------------ -_AsmReadMsr32 PROC - ; - ; AsmReadMsr32 shares the same implementation with AsmReadMsr64 and thus no - ; code inside this function - ; -_AsmReadMsr32 ENDP - ;------------------------------------------------------------------------------ ; UINT64 ; EFIAPI @@ -46,10 +32,10 @@ _AsmReadMsr32 ENDP ; IN UINT64 Index ; ); ;------------------------------------------------------------------------------ -_AsmReadMsr64 PROC +AsmReadMsr64 PROC mov ecx, [esp + 4] rdmsr ret -_AsmReadMsr64 ENDP +AsmReadMsr64 ENDP END