aboutsummaryrefslogtreecommitdiff
path: root/src/include/ipxe/memblock.h
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2012-11-05 23:19:16 +0000
committerMichael Brown <mcb30@ipxe.org>2012-11-06 17:44:40 +0000
commitfd141fb6693520fd01b6f5a5d6b15379fb543254 (patch)
tree94e5897123f622c36e59d6163532c47440695d6f /src/include/ipxe/memblock.h
parent1494d41d0a20a1facff7558ff825a2681b419e9d (diff)
downloadipxe-fd141fb6693520fd01b6f5a5d6b15379fb543254.zip
ipxe-fd141fb6693520fd01b6f5a5d6b15379fb543254.tar.gz
ipxe-fd141fb6693520fd01b6f5a5d6b15379fb543254.tar.bz2
[umalloc] Split largest_memblock() function out from init_eheap()
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/memblock.h')
-rw-r--r--src/include/ipxe/memblock.h17
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 0000000..13af3e4
--- /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 */