summaryrefslogtreecommitdiff
path: root/sys/uvm
diff options
context:
space:
mode:
Diffstat (limited to 'sys/uvm')
-rw-r--r--sys/uvm/uvm_map.c8
-rw-r--r--sys/uvm/uvm_unix.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index d4e055464c1..bc605570b0d 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.98 2007/09/10 18:49:45 miod Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.99 2007/09/15 10:10:37 martin Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -855,7 +855,7 @@ uvm_map_p(struct vm_map *map, vaddr_t *startp, vsize_t size,
uvm_rb_fixup(map, prev_entry);
map->size += size;
if (p && uobj == NULL)
- p->p_vmspace->vm_dused += btoc(size);
+ p->p_vmspace->vm_dused += atop(size);
uvm_tree_sanity(map, "map leave 2");
@@ -922,7 +922,7 @@ step3:
map->size += size;
if (p && uobj == NULL)
- p->p_vmspace->vm_dused += btoc(size);
+ p->p_vmspace->vm_dused += atop(size);
/*
@@ -1437,7 +1437,7 @@ uvm_unmap_remove(struct vm_map *map, vaddr_t start, vaddr_t end,
next = entry->next;
len = entry->end - entry->start;
if (p && entry->object.uvm_obj == NULL)
- p->p_vmspace->vm_dused -= btoc(len);
+ p->p_vmspace->vm_dused -= atop(len);
/*
* unwire before removing addresses from the pmap; otherwise
diff --git a/sys/uvm/uvm_unix.c b/sys/uvm/uvm_unix.c
index 18adecc2107..1683515fc1b 100644
--- a/sys/uvm/uvm_unix.c
+++ b/sys/uvm/uvm_unix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_unix.c,v 1.29 2007/09/01 15:14:44 martin Exp $ */
+/* $OpenBSD: uvm_unix.c,v 1.30 2007/09/15 10:10:37 martin Exp $ */
/* $NetBSD: uvm_unix.c,v 1.18 2000/09/13 15:00:25 thorpej Exp $ */
/*
@@ -144,11 +144,11 @@ uvm_grow(p, sp)
* Really need to check vs limit and increment stack size if ok.
*/
#ifdef MACHINE_STACK_GROWS_UP
- si = btoc(sp - USRSTACK) - vm->vm_ssize;
+ si = atop(sp - USRSTACK) - vm->vm_ssize;
#else
- si = btoc(USRSTACK - sp) - vm->vm_ssize;
+ si = atop(USRSTACK - sp) - vm->vm_ssize;
#endif
- if (vm->vm_ssize + si <= btoc(p->p_rlimit[RLIMIT_STACK].rlim_cur))
+ if (vm->vm_ssize + si <= atop(p->p_rlimit[RLIMIT_STACK].rlim_cur))
vm->vm_ssize += si;
}