From: andrewfish Date: Sun, 19 Jun 2011 18:56:13 +0000 (+0000) Subject: InOsEmuPkg: Fix issue with EFI_LBA not being implemented as a UINT64 in the IA-32... X-Git-Tag: edk2-stable201903~14655 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b02333caa6e131fcdefe2ceb8623e1215724b70b;p=mirror_edk2.git InOsEmuPkg: Fix issue with EFI_LBA not being implemented as a UINT64 in the IA-32 Gasket. Also clean up some missing EFIAPI. signed-off-by: andrewfish git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11855 6f19259b-4bc3-4df7-8a09-765794883524 --- diff --git a/InOsEmuPkg/Unix/Sec/Gasket.h b/InOsEmuPkg/Unix/Sec/Gasket.h index a9ecf8dfc8..e5966964c5 100644 --- a/InOsEmuPkg/Unix/Sec/Gasket.h +++ b/InOsEmuPkg/Unix/Sec/Gasket.h @@ -94,11 +94,13 @@ GasketSecDisableInterrupt ( ); UINT64 +EFIAPI GasketQueryPerformanceFrequency ( VOID ); UINT64 +EFIAPI GasketQueryPerformanceCounter ( VOID ); @@ -176,7 +178,7 @@ GasketSecUnixUnixFwhAddress ( typedef void -(*CALL_BACK) ( +(EFIAPI *CALL_BACK) ( UINT64 Delta ); @@ -448,6 +450,7 @@ GasketEmuBlockIoReset ( ); EFI_STATUS +EFIAPI GasketEmuBlockIoReadBlocks ( IN EMU_BLOCK_IO_PROTOCOL *This, IN UINT32 MediaId, @@ -469,12 +472,14 @@ GasketEmuBlockIoWriteBlocks ( ); EFI_STATUS +EFIAPI GasketEmuBlockIoFlushBlocks ( IN EMU_BLOCK_IO_PROTOCOL *This, IN OUT EFI_BLOCK_IO2_TOKEN *Token ); EFI_STATUS +EFIAPI GasketEmuBlockIoCreateMapping ( IN EMU_BLOCK_IO_PROTOCOL *This, IN EFI_BLOCK_IO_MEDIA *Media diff --git a/InOsEmuPkg/Unix/Sec/Ia32/Gasket.S b/InOsEmuPkg/Unix/Sec/Ia32/Gasket.S index d9ac12d7f0..f1b974e18a 100644 --- a/InOsEmuPkg/Unix/Sec/Ia32/Gasket.S +++ b/InOsEmuPkg/Unix/Sec/Ia32/Gasket.S @@ -1022,15 +1022,17 @@ ASM_GLOBAL ASM_PFX(GasketEmuBlockIoReadBlocks) ASM_PFX(GasketEmuBlockIoReadBlocks): pushl %ebp movl %esp, %ebp - subl $40, %esp // sub extra 16 from the stack for alignment + subl $56, %esp // sub extra 16 from the stack for alignment and $-16, %esp // stack needs to end in 0xFFFFFFF0 before call + movl 32(%ebp), %eax + movl %eax, 24(%esp) movl 28(%ebp), %eax movl %eax, 20(%esp) movl 24(%ebp), %eax movl %eax, 16(%esp) - movl 20(%ebp), %eax - movl %eax, 12(%esp) movl 16(%ebp), %eax + movl 20(%ebp), %edx + movl %edx, 12(%esp) movl %eax, 8(%esp) movl 12(%ebp), %eax movl %eax, 4(%esp) @@ -1047,15 +1049,17 @@ ASM_GLOBAL ASM_PFX(GasketEmuBlockIoWriteBlocks) ASM_PFX(GasketEmuBlockIoWriteBlocks): pushl %ebp movl %esp, %ebp - subl $40, %esp // sub extra 16 from the stack for alignment + subl $56, %esp // sub extra 16 from the stack for alignment and $-16, %esp // stack needs to end in 0xFFFFFFF0 before call + movl 32(%ebp), %eax + movl %eax, 24(%esp) movl 28(%ebp), %eax movl %eax, 20(%esp) movl 24(%ebp), %eax movl %eax, 16(%esp) - movl 20(%ebp), %eax - movl %eax, 12(%esp) movl 16(%ebp), %eax + movl 20(%ebp), %edx + movl %edx, 12(%esp) movl %eax, 8(%esp) movl 12(%ebp), %eax movl %eax, 4(%esp)