From db01f13e00e74bccde63152ef75a82f6bb8e1e81 Mon Sep 17 00:00:00 2001 From: jwang36 Date: Wed, 10 Oct 2007 07:04:15 +0000 Subject: [PATCH] Changed to pass the build with Visual Studio 2005 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4075 6f19259b-4bc3-4df7-8a09-765794883524 --- MdeModulePkg/Bus/Pci/EhciDxe/EhciUrb.c | 2 +- MdeModulePkg/Universal/EbcDxe/x64/EbcLowLevel.asm | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/MdeModulePkg/Bus/Pci/EhciDxe/EhciUrb.c b/MdeModulePkg/Bus/Pci/EhciDxe/EhciUrb.c index 005e0596b6..bb272cc8de 100644 --- a/MdeModulePkg/Bus/Pci/EhciDxe/EhciUrb.c +++ b/MdeModulePkg/Bus/Pci/EhciDxe/EhciUrb.c @@ -294,7 +294,7 @@ EhcConvertPollRate ( BitCount++; } - return 1 << (BitCount - 1); + return (UINTN)1 << (BitCount - 1); } diff --git a/MdeModulePkg/Universal/EbcDxe/x64/EbcLowLevel.asm b/MdeModulePkg/Universal/EbcDxe/x64/EbcLowLevel.asm index 7b59e93aa1..3262ea9378 100644 --- a/MdeModulePkg/Universal/EbcDxe/x64/EbcLowLevel.asm +++ b/MdeModulePkg/Universal/EbcDxe/x64/EbcLowLevel.asm @@ -53,7 +53,7 @@ text SEGMENT CopyMem PROTO Destination:PTR DWORD, Source:PTR DWORD, Count:DWORD -EbcLLCALLEXNative PROC NEAR PUBLIC +EbcLLCALLEXNative PROC PUBLIC push rbp push rbx mov rbp, rsp @@ -101,7 +101,7 @@ EbcLLCALLEXNative ENDP ; Returns: ; The contents of the register in which the entry point is passed. ; -EbcLLGetEbcEntryPoint PROC NEAR PUBLIC +EbcLLGetEbcEntryPoint PROC PUBLIC ret EbcLLGetEbcEntryPoint ENDP @@ -124,7 +124,7 @@ EbcLLGetEbcEntryPoint ENDP ;--*/ ; UINTN EbcLLGetStackPointer() -EbcLLGetStackPointer PROC NEAR PUBLIC +EbcLLGetStackPointer PROC PUBLIC mov rax, rsp ; get current stack pointer ; Stack adjusted by this much when we were called, ; For this function, it's 4. @@ -145,7 +145,7 @@ EbcLLGetStackPointer ENDP ; Returns: ; The unmodified value returned by the native code. ; -EbcLLGetReturnValue PROC NEAR PUBLIC +EbcLLGetReturnValue PROC PUBLIC ret EbcLLGetReturnValue ENDP -- 2.39.2