diff options
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_map.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 */ |