arch/sim: Implement host_freeheap for windows
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
This commit is contained in:
parent
f620b039aa
commit
97f8817d6b
@ -41,6 +41,19 @@ void *host_allocheap(size_t sz)
|
||||
return _aligned_malloc(sz, 8);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
* Name: host_freeheap
|
||||
*
|
||||
* Description:
|
||||
* Free a executable memory block.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
void host_freeheap(void *mem)
|
||||
{
|
||||
_aligned_free(mem);
|
||||
}
|
||||
|
||||
void *host_allocshmem(const char *name, size_t size, int master)
|
||||
{
|
||||
HANDLE handle;
|
||||
|
Loading…
Reference in New Issue
Block a user