First version of an external memory allocator (not tested)

This commit is contained in:
Michael Brown
2007-01-12 03:15:29 +00:00
parent 1d313234b3
commit 45ec9c907e
2 changed files with 176 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#ifndef _GPXE_EMALLOC_H
#define _GPXE_EMALLOC_H
/**
* @file
*
* External memory allocation
*
*/
#include <gpxe/uaccess.h>
extern userptr_t emalloc ( size_t size );
extern userptr_t erealloc ( userptr_t ptr, size_t new_size );
extern void efree ( userptr_t ptr );
#endif /* _GPXE_EMALLOC_H */