summaryrefslogtreecommitdiff
path: root/InOsEmuPkg/Include
diff options
context:
space:
mode:
Diffstat (limited to 'InOsEmuPkg/Include')
-rw-r--r--InOsEmuPkg/Include/Protocol/EmuThunk.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/InOsEmuPkg/Include/Protocol/EmuThunk.h b/InOsEmuPkg/Include/Protocol/EmuThunk.h
index ed4df3a942..6c1190c141 100644
--- a/InOsEmuPkg/Include/Protocol/EmuThunk.h
+++ b/InOsEmuPkg/Include/Protocol/EmuThunk.h
@@ -78,6 +78,18 @@ BOOLEAN
);
+typedef
+VOID *
+(EFIAPI *EMU_OS_MALLOC) (
+ IN UINTN Size
+ );
+
+typedef
+VOID
+(EFIAPI *EMU_OS_FREE) (
+ IN VOID *Ptr
+ );
+
typedef
EFI_STATUS
@@ -205,6 +217,13 @@ struct _EMU_THUNK_PROTOCOL {
EMU_READ_STD_IN ReadStdIn;
EMU_POLL_STD_IN PollStdIn;
+ //
+ // Map OS malloc/free so we can use OS based guard malloc
+ //
+ EMU_OS_MALLOC Malloc;
+ EMU_OS_FREE Free;
+
+
///
/// PE/COFF loader hooks to get symbols loaded
///