summaryrefslogtreecommitdiff
path: root/sys/uvm/uvm_mmap.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2003-01-09 22:27:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2003-01-09 22:27:13 +0000
commit332a483dedd5c976b45635d3ef8337dfdd377f08 (patch)
treebcd0800a8732b7099fd64ce366155836b0f6e6ce /sys/uvm/uvm_mmap.c
parentc88cb37963768d4ddbf78335478986b31599e25a (diff)
Remove fetch(9) and store(9) functions from the kernel, and replace the few
remaining instances of them with appropriate copy(9) usage. ok art@, tested on all arches unless my memory is non-ECC
Diffstat (limited to 'sys/uvm/uvm_mmap.c')
-rw-r--r--sys/uvm/uvm_mmap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/uvm/uvm_mmap.c b/sys/uvm/uvm_mmap.c
index 443931a96ef..7bd6a666c3d 100644
--- a/sys/uvm/uvm_mmap.c
+++ b/sys/uvm/uvm_mmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_mmap.c,v 1.37 2002/11/08 04:06:02 art Exp $ */
+/* $OpenBSD: uvm_mmap.c,v 1.38 2003/01/09 22:27:12 miod Exp $ */
/* $NetBSD: uvm_mmap.c,v 1.49 2001/02/18 21:19:08 chs Exp $ */
/*
@@ -196,9 +196,10 @@ sys_mincore(p, v, retval)
KASSERT(!UVM_OBJ_IS_KERN_OBJECT(entry->object.uvm_obj));
if (entry->object.uvm_obj->pgops->pgo_releasepg
== NULL) {
+ pgi = 1;
for (/* nothing */; start < lim;
start += PAGE_SIZE, vec++)
- subyte(vec, 1);
+ copyout(&pgi, vec, sizeof(char));
continue;
}
}
@@ -240,7 +241,7 @@ sys_mincore(p, v, retval)
}
}
- (void) subyte(vec, pgi);
+ copyout(&pgi, vec, sizeof(char));
}
if (uobj != NULL)