diff options
| author | Michael Brown | 2006-04-25 05:30:46 +0200 |
|---|---|---|
| committer | Michael Brown | 2006-04-25 05:30:46 +0200 |
| commit | b601a7d355a4c24563f4f2db40ba52ae183ce493 (patch) | |
| tree | 84525e5d35329776f8a4c90563ae4e435c001d8f /src/include/gpxe | |
| parent | Add __constant_flsl(), because it's useful for finding out the next (diff) | |
| download | ipxe-b601a7d355a4c24563f4f2db40ba52ae183ce493.tar.gz ipxe-b601a7d355a4c24563f4f2db40ba52ae183ce493.tar.xz ipxe-b601a7d355a4c24563f4f2db40ba52ae183ce493.zip | |
Updated memory allocator to improve support for unaligned or partially
aligned blocks.
Moved header to include/malloc.h, since we now also provide the
POSIX-like malloc()/free() pair.
Not yet tested.
Diffstat (limited to 'src/include/gpxe')
| -rw-r--r-- | src/include/gpxe/malloc.h | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/include/gpxe/malloc.h b/src/include/gpxe/malloc.h deleted file mode 100644 index abb0008a1..000000000 --- a/src/include/gpxe/malloc.h +++ /dev/null @@ -1,36 +0,0 @@ -#ifndef _GPXE_MALLOC_H -#define _GPXE_MALLOC_H - -#include <stdint.h> - -/** @file - * - * Memory allocation - * - */ - -extern void * gmalloc ( size_t size ); -extern void gfree ( void *ptr, size_t size ); -extern void gmpopulate ( void *start, size_t len ); - -/** - * Allocate cleared memory - * - * @v size Requested size - * @ret ptr Allocated memory - * - * Allocate memory as per gmalloc(), and zero it. - * - * Note that gmalloc() and gcalloc() are identical, in the interests - * of reducing code size. Callers should not, however, rely on - * gmalloc() clearing memory, since this behaviour may change in - * future. - */ -static inline void * gcalloc ( size_t size ) { - return gmalloc ( size ); -} - -/* Debug function; not compiled in by default */ -void gdumpfree ( void ); - -#endif /* _GPXE_MALLOC_H */ |
