mirror of
https://github.com/ipxe/ipxe
synced 2025-12-31 15:25:23 +03:00
[umalloc] Formalise the user memory allocation API
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* @{
|
||||
*/
|
||||
|
||||
#define ERRFILE_umalloc ( ERRFILE_ARCH | ERRFILE_CORE | 0x00000000 )
|
||||
#define ERRFILE_memtop_umalloc ( ERRFILE_ARCH | ERRFILE_CORE | 0x00000000 )
|
||||
#define ERRFILE_memmap ( ERRFILE_ARCH | ERRFILE_CORE | 0x00010000 )
|
||||
#define ERRFILE_pnpbios ( ERRFILE_ARCH | ERRFILE_CORE | 0x00020000 )
|
||||
#define ERRFILE_smbios ( ERRFILE_ARCH | ERRFILE_CORE | 0x00030000 )
|
||||
|
||||
12
src/arch/i386/include/bits/umalloc.h
Normal file
12
src/arch/i386/include/bits/umalloc.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef _BITS_UMALLOC_H
|
||||
#define _BITS_UMALLOC_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* i386-specific user memory allocation API implementations
|
||||
*
|
||||
*/
|
||||
|
||||
#include <gpxe/memtop_umalloc.h>
|
||||
|
||||
#endif /* _BITS_UMALLOC_H */
|
||||
16
src/arch/i386/include/gpxe/memtop_umalloc.h
Normal file
16
src/arch/i386/include/gpxe/memtop_umalloc.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#ifndef _GPXE_MEMTOP_UMALLOC_H
|
||||
#define _GPXE_MEMTOP_UMALLOC_H
|
||||
|
||||
/** @file
|
||||
*
|
||||
* External memory allocation
|
||||
*
|
||||
*/
|
||||
|
||||
#ifdef UMALLOC_MEMTOP
|
||||
#define UMALLOC_PREFIX_memtop
|
||||
#else
|
||||
#define UMALLOC_PREFIX_memtop __memtop_
|
||||
#endif
|
||||
|
||||
#endif /* _GPXE_MEMTOP_UMALLOC_H */
|
||||
Reference in New Issue
Block a user