diff options
Diffstat (limited to 'InOsEmuPkg/Unix')
-rw-r--r-- | InOsEmuPkg/Unix/Sec/Gasket.h | 7 | ||||
-rw-r--r-- | InOsEmuPkg/Unix/Sec/Ia32/Gasket.S | 16 |
2 files changed, 16 insertions, 7 deletions
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) |