summaryrefslogtreecommitdiff
path: root/gpxe/src/include/gpxe/umalloc.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/umalloc.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/umalloc.h')
-rw-r--r--gpxe/src/include/gpxe/umalloc.h68
1 files changed, 0 insertions, 68 deletions
diff --git a/gpxe/src/include/gpxe/umalloc.h b/gpxe/src/include/gpxe/umalloc.h
deleted file mode 100644
index b0e55645..00000000
--- a/gpxe/src/include/gpxe/umalloc.h
+++ /dev/null
@@ -1,68 +0,0 @@
-#ifndef _GPXE_UMALLOC_H
-#define _GPXE_UMALLOC_H
-
-/**
- * @file
- *
- * User memory allocation
- *
- */
-
-FILE_LICENCE ( GPL2_OR_LATER );
-
-#include <gpxe/api.h>
-#include <config/umalloc.h>
-#include <gpxe/uaccess.h>
-
-/**
- * Provide a user memory allocation API implementation
- *
- * @v _prefix Subsystem prefix
- * @v _api_func API function
- * @v _func Implementing function
- */
-#define PROVIDE_UMALLOC( _subsys, _api_func, _func ) \
- PROVIDE_SINGLE_API ( UMALLOC_PREFIX_ ## _subsys, _api_func, _func )
-
-/* Include all architecture-independent I/O API headers */
-#include <gpxe/efi/efi_umalloc.h>
-
-/* Include all architecture-dependent I/O API headers */
-#include <bits/umalloc.h>
-
-/**
- * Reallocate external memory
- *
- * @v userptr Memory previously allocated by umalloc(), or UNULL
- * @v new_size Requested size
- * @ret userptr Allocated memory, or UNULL
- *
- * Calling realloc() with a new size of zero is a valid way to free a
- * memory block.
- */
-userptr_t urealloc ( userptr_t userptr, size_t new_size );
-
-/**
- * Allocate external memory
- *
- * @v size Requested size
- * @ret userptr Memory, or UNULL
- *
- * Memory is guaranteed to be aligned to a page boundary.
- */
-static inline __always_inline userptr_t umalloc ( size_t size ) {
- return urealloc ( UNULL, size );
-}
-
-/**
- * Free external memory
- *
- * @v userptr Memory allocated by umalloc(), or UNULL
- *
- * If @c ptr is UNULL, no action is taken.
- */
-static inline __always_inline void ufree ( userptr_t userptr ) {
- urealloc ( userptr, 0 );
-}
-
-#endif /* _GPXE_UMALLOC_H */