summaryrefslogtreecommitdiff
path: root/gpxe/src/include/gpxe/malloc.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-02-09 18:08:47 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-02-09 18:08:47 -0800
commitf2f897a1762fab84d2905f32b1c15dd7b42abb56 (patch)
treea38f51d3f1fcbf44afddb4736d549c12eaf491be /gpxe/src/include/gpxe/malloc.h
parent72d2959272b4616f17a97667e6dfa9d06bf109a3 (diff)
downloadsyslinux-f2f897a1762fab84d2905f32b1c15dd7b42abb56.tar.gz
gpxe: delete long since obsolete snapshot of gPXE
gPXE has been deprecated in favor of iPXE for many, many years now. It is much better than users get it directly from the iPXE project, since we should no longer need any special modifications for Syslinux use. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'gpxe/src/include/gpxe/malloc.h')
-rw-r--r--gpxe/src/include/gpxe/malloc.h59
1 files changed, 0 insertions, 59 deletions
diff --git a/gpxe/src/include/gpxe/malloc.h b/gpxe/src/include/gpxe/malloc.h
deleted file mode 100644
index c02a8668..00000000
--- a/gpxe/src/include/gpxe/malloc.h
+++ /dev/null
@@ -1,59 +0,0 @@
-#ifndef _GPXE_MALLOC_H
-#define _GPXE_MALLOC_H
-
-#include <stdint.h>
-
-/** @file
- *
- * Dynamic memory allocation
- *
- */
-
-FILE_LICENCE ( GPL2_OR_LATER );
-
-/*
- * Prototypes for the standard functions (malloc() et al) are in
- * 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 * __malloc 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 );
-extern void mdumpfree ( void );
-
-/**
- * Allocate memory for DMA
- *
- * @v size Requested size
- * @v align Physical alignment
- * @ret ptr Memory, or NULL
- *
- * Allocates physically-aligned memory for DMA.
- *
- * @c align must be a power of two. @c size may not be zero.
- */
-static inline void * __malloc malloc_dma ( size_t size, size_t phys_align ) {
- return alloc_memblock ( size, phys_align );
-}
-
-/**
- * Free memory allocated with malloc_dma()
- *
- * @v ptr Memory allocated by malloc_dma(), or NULL
- * @v size Size of memory, as passed to malloc_dma()
- *
- * Memory allocated with malloc_dma() can only be freed with
- * free_dma(); it cannot be freed with the standard free().
- *
- * If @c ptr is NULL, no action is taken.
- */
-static inline void free_dma ( void *ptr, size_t size ) {
- free_memblock ( ptr, size );
-}
-
-#endif /* _GPXE_MALLOC_H */