diff options
| author | Michael Brown | 2012-11-06 00:19:16 +0100 |
|---|---|---|
| committer | Michael Brown | 2012-11-06 18:44:40 +0100 |
| commit | fd141fb6693520fd01b6f5a5d6b15379fb543254 (patch) | |
| tree | 94e5897123f622c36e59d6163532c47440695d6f /src/include/ipxe | |
| parent | [uaccess] Add userptr_sub() to find the difference between two user pointers (diff) | |
| download | ipxe-fd141fb6693520fd01b6f5a5d6b15379fb543254.tar.gz ipxe-fd141fb6693520fd01b6f5a5d6b15379fb543254.tar.xz ipxe-fd141fb6693520fd01b6f5a5d6b15379fb543254.zip | |
[umalloc] Split largest_memblock() function out from init_eheap()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
| -rw-r--r-- | src/include/ipxe/memblock.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/include/ipxe/memblock.h b/src/include/ipxe/memblock.h new file mode 100644 index 000000000..13af3e433 --- /dev/null +++ b/src/include/ipxe/memblock.h @@ -0,0 +1,17 @@ +#ifndef _IPXE_MEMBLOCK_H +#define _IPXE_MEMBLOCK_H + +/** @file + * + * Largest memory block + * + */ + +FILE_LICENCE ( GPL2_OR_LATER ); + +#include <stdint.h> +#include <ipxe/uaccess.h> + +extern size_t largest_memblock ( userptr_t *start ); + +#endif /* _IPXE_MEMBLOCK_H */ |
