summaryrefslogtreecommitdiff
path: root/vm/vm_map.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2012-11-21 21:38:28 +0100
committerRichard Braun <rbraun@sceen.net>2012-11-21 21:38:28 +0100
commitd7f3277300cb9e7d3f9c1699b899ad1bf9797cfd (patch)
treefb7ae9d7481a0a4b62e9012d4457508a1ff63fde /vm/vm_map.c
parentc1d914895fa08f5263a1c6421e65c82622b2fd59 (diff)
x86/pmap: turn pmap_klimit into a function
Let the pmap module internally handle the mapping limit.
Diffstat (limited to 'vm/vm_map.c')
-rw-r--r--vm/vm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 8343472f..2ca46582 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -435,7 +435,7 @@ vm_map_insert(struct vm_map *map, struct vm_map_entry *entry,
vm_map_link(map, entry, NULL, request->next);
map->size += request->size;
- if ((map == kernel_map) && (pmap_klimit < entry->end))
+ if ((map == kernel_map) && (pmap_klimit() < entry->end))
pmap_growkernel(entry->end);
return 0;