Adding upstream version 6.02~pre8+dfsg.
[syslinux-debian/hramrach.git] / efi / mem.c
blob50e93b08a41d488e0a8cdfd835e9b512ea1070ca
1 #include <mem/malloc.h>
2 #include <string.h>
3 #include "efi.h"
5 void *efi_malloc(size_t size, enum heap heap, malloc_tag_t tag)
7 return AllocatePool(size);
10 void *efi_realloc(void *ptr, size_t size)
12 void *newptr;
14 newptr = AllocatePool(size);
15 memcpy(newptr, ptr, size);
16 FreePool(ptr);
17 return newptr;
20 void efi_free(void *ptr)
22 FreePool(ptr);