mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 01:52:39 +03:00
[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:
committed by
Michael Brown
parent
a320085750
commit
6ec1c509e4
18
src/include/ipxe/linux/linux_umalloc.h
Normal file
18
src/include/ipxe/linux/linux_umalloc.h
Normal 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 */
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user