summaryrefslogtreecommitdiffstats
path: root/src/include/ipxe/linux
diff options
context:
space:
mode:
authorMichael Brown2025-05-19 13:01:58 +0200
committerMichael Brown2025-05-19 20:35:56 +0200
commitc6ca3d3af83be57da8ba63df86185dc10fe7b715 (patch)
treeb4f6eeb3d7ee2d3d0dc0af1b3d9e15030421d65c /src/include/ipxe/linux
parent[memmap] Remove now-obsolete get_memmap() (diff)
downloadipxe-c6ca3d3af83be57da8ba63df86185dc10fe7b715.tar.gz
ipxe-c6ca3d3af83be57da8ba63df86185dc10fe7b715.tar.xz
ipxe-c6ca3d3af83be57da8ba63df86185dc10fe7b715.zip
[malloc] Allow for the existence of multiple heaps
Create a generic model of a heap as a list of free blocks with optional methods for growing and shrinking the heap. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe/linux')
-rw-r--r--src/include/ipxe/linux/linux_uaccess.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/include/ipxe/linux/linux_uaccess.h b/src/include/ipxe/linux/linux_uaccess.h
index a5d7d73f3..7770ea90e 100644
--- a/src/include/ipxe/linux/linux_uaccess.h
+++ b/src/include/ipxe/linux/linux_uaccess.h
@@ -7,9 +7,9 @@
*
* We have no concept of the underlying physical addresses, since
* these are not exposed to userspace. We provide a stub
- * implementation of virt_to_phys() since this is required by
- * alloc_memblock(). We provide a matching stub implementation of
- * phys_to_virt().
+ * implementation of virt_to_phys() since this is required by the heap
+ * allocator to determine physical address alignment. We provide a
+ * matching stub implementation of phys_to_virt().
*/
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
@@ -31,11 +31,11 @@ UACCESS_INLINE ( linux, virt_to_phys ) ( volatile const void *virt ) {
/* We do not know the real underlying physical address. We
* provide this stub implementation only because it is
- * required by alloc_memblock() (which allocates memory with
- * specified physical address alignment). We assume that the
- * low-order bits of virtual addresses match the low-order
- * bits of physical addresses, and so simply returning the
- * virtual address will suffice for the purpose of determining
+ * required in order to allocate memory with a specified
+ * physical address alignment. We assume that the low-order
+ * bits of virtual addresses match the low-order bits of
+ * physical addresses, and so simply returning the virtual
+ * address will suffice for the purpose of determining
* alignment.
*/
return ( ( physaddr_t ) virt );