From 71e2159bee951b896a83d901d908cd421b07be69 Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Sun, 15 Apr 2007 11:29:34 +0000 Subject: Use the right types for calculating the object offset. miod@ ok --- sys/uvm/uvm_km.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/uvm') 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); -- cgit v1.2.3