summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/malloc.h (renamed from src/include/malloc.h)12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/include/malloc.h b/src/include/gpxe/malloc.h
index b14ec78c8..0e18f6a35 100644
--- a/src/include/malloc.h
+++ b/src/include/gpxe/malloc.h
@@ -1,5 +1,5 @@
-#ifndef _MALLOC_H
-#define _MALLOC_H
+#ifndef _GPXE_MALLOC_H
+#define _GPXE_MALLOC_H
#include <stdint.h>
@@ -11,12 +11,14 @@
/*
* Prototypes for the standard functions (malloc() et al) are in
- * stdlib.h. Include <malloc.h> only if you need the non-standard
- * functions, such as malloc_dma().
+ * stdlib.h. Include <gpxe/malloc.h> only if you need the
+ * non-standard functions, such as malloc_dma().
*
*/
#include <stdlib.h>
+extern size_t freemem;
+
extern void * alloc_memblock ( size_t size, size_t align );
extern void free_memblock ( void *ptr, size_t size );
extern void mpopulate ( void *start, size_t len );
@@ -52,4 +54,4 @@ static inline void free_dma ( void *ptr, size_t size ) {
free_memblock ( ptr, size );
}
-#endif /* _MALLOC_H */
+#endif /* _GPXE_MALLOC_H */