diff options
Diffstat (limited to 'src/sys/vm/vm_map.c')
-rw-r--r-- | src/sys/vm/vm_map.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sys/vm/vm_map.c b/src/sys/vm/vm_map.c index ed187d8..1b27a21 100644 --- a/src/sys/vm/vm_map.c +++ b/src/sys/vm/vm_map.c @@ -104,5 +104,8 @@ vm_map(struct vm_vas *vas, struct mmu_map *spec, size_t len, int prot) return -1; } + /* Place a guard page at the end */ + spec->va = spec_cpy.va + len; + __vm_map(vas, spec, DEFAULT_PAGESIZE, 0); return 0; } |