diff options
Diffstat (limited to 'InOsEmuPkg/Unix/Sec/EmuThunk.c')
-rw-r--r-- | InOsEmuPkg/Unix/Sec/EmuThunk.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/InOsEmuPkg/Unix/Sec/EmuThunk.c b/InOsEmuPkg/Unix/Sec/EmuThunk.c index 97c339d241..50afbb5cd6 100644 --- a/InOsEmuPkg/Unix/Sec/EmuThunk.c +++ b/InOsEmuPkg/Unix/Sec/EmuThunk.c @@ -118,6 +118,23 @@ SecPollStdIn ( } +VOID * +SecMalloc ( + IN UINTN Size + ) +{ + return malloc ((size_t)Size); +} + +VOID +SecFree ( + IN VOID *Ptr + ) +{ + free (Ptr); + return; +} + void settimer_handler (int sig) @@ -370,6 +387,8 @@ EMU_THUNK_PROTOCOL gEmuThunkProtocol = { GasketSecWriteStdOut, GasketSecReadStdIn, GasketSecPollStdIn, + GasketSecMalloc, + GasketSecFree, GasketSecPeCoffGetEntryPoint, GasketSecPeCoffRelocateImageExtraAction, GasketSecPeCoffUnloadImageExtraAction, |