From 9a26f4d453b1742c6249d66a077a175120e23338 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 16 Apr 2024 12:46:51 -0400 Subject: kernel: vm_map: Add more detail to comment Signed-off-by: Ian Moffett --- sys/vm/vm_map.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c index f65bad2..7d79108 100644 --- a/sys/vm/vm_map.c +++ b/sys/vm/vm_map.c @@ -83,7 +83,10 @@ vm_map_create(struct vas vas, vaddr_t va, paddr_t pa, vm_prot_t prot, size_t byt struct vm_ctx *ctx = vm_get_ctx(); - /* We want bytes to be aligned by the granule */ + /* + * The amount of bytes to be mapped should fully span pages, + * so we ensure it is aligned by the page granularity. + */ bytes = __ALIGN_UP(bytes + misalign, granule); /* Align VA/PA by granule */ -- cgit v1.2.3