diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-16 16:42:35 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-16 16:42:35 -0400 |
commit | d62920dcd07e947e9dc4228d10fa471bd6a6cb9c (patch) | |
tree | c81fa2bf34a29d77384d5a035f93db2722f444b5 /src/sys/include/vm | |
parent | 06ef6b5ee4e8b5fbec09ed6c860dfcbebe5922a4 (diff) |
kern: vm: Implement lazy allocation for vm_map()
Introduce lazy allocation in the vm_map() function. When passing a zero
value to any of the base address fields of the map spec, allocate our
own memory.
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/include/vm')
-rw-r--r-- | src/sys/include/vm/map.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/include/vm/map.h b/src/sys/include/vm/map.h index 4e0f27e..69d7d73 100644 --- a/src/sys/include/vm/map.h +++ b/src/sys/include/vm/map.h @@ -44,6 +44,9 @@ * @len: Length of mapping (4K aligned) * @prot: Memory protection flags (PROT_*) * + * XXX: If spec->va or spec->pa is a value of zero, an address + * will be assigned and shared by both. + * * Returns zero on success, otherwise a less than zero value * on failure. */ |