diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2007-04-15 11:29:34 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2007-04-15 11:29:34 +0000 |
commit | 71e2159bee951b896a83d901d908cd421b07be69 (patch) | |
tree | 89f3d58060b9d6459c6b5ffed3b919da459a9ea2 /sys/uvm | |
parent | 2280e956fbd5e0825a3a1351b3cce7a4c9e0fefc (diff) |
Use the right types for calculating the object offset.
miod@ ok
Diffstat (limited to 'sys/uvm')
-rw-r--r-- | sys/uvm/uvm_km.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/uvm/uvm_km.c b/sys/uvm/uvm_km.c index 7b89df1da23..f9c4a7105bd 100644 --- a/sys/uvm/uvm_km.c +++ b/sys/uvm/uvm_km.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_km.c,v 1.59 2007/04/15 11:23:16 art Exp $ */ +/* $OpenBSD: uvm_km.c,v 1.60 2007/04/15 11:29:33 art Exp $ */ /* $NetBSD: uvm_km.c,v 1.42 2001/01/14 02:10:01 thorpej Exp $ */ /* @@ -340,7 +340,7 @@ uvm_km_kmemalloc(struct vm_map *map, struct uvm_object *obj, vsize_t size, int flags) { vaddr_t kva, loopva; - vaddr_t offset; + voff_t offset; struct vm_page *pg; UVMHIST_FUNC("uvm_km_kmemalloc"); UVMHIST_CALLED(maphist); @@ -476,7 +476,8 @@ uvm_km_free_wakeup(struct vm_map *map, vaddr_t addr, vsize_t size) vaddr_t uvm_km_alloc1(struct vm_map *map, vsize_t size, vsize_t align, boolean_t zeroit) { - vaddr_t kva, loopva, offset; + vaddr_t kva, loopva; + voff_t offset; struct vm_page *pg; UVMHIST_FUNC("uvm_km_alloc1"); UVMHIST_CALLED(maphist); |