mirror of https://github.com/acidanthera/audk.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
This commit is contained in:
parent
f2f008b435
commit
b02333caa6
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue