[linux] Add umalloc

Add umalloc API.

Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Piotr Jaroszyński
2010-05-26 18:36:03 +02:00
committed by Michael Brown
parent a320085750
commit 6ec1c509e4
4 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#ifndef _IPXE_LINUX_UMALLOC_H
#define _IPXE_LINUX_UMALLOC_H
FILE_LICENCE(GPL2_OR_LATER);
/** @file
*
* iPXE user memory allocation API for linux
*
*/
#ifdef UMALLOC_LINUX
#define UMALLOC_PREFIX_linux
#else
#define UMALLOC_PREFIX_linux __linux_
#endif
#endif /* _IPXE_LINUX_UMALLOC_H */

View File

@@ -26,6 +26,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
/* Include all architecture-independent I/O API headers */
#include <ipxe/efi/efi_umalloc.h>
#include <ipxe/linux/linux_umalloc.h>
/* Include all architecture-dependent I/O API headers */
#include <bits/umalloc.h>