summaryrefslogtreecommitdiffstats
path: root/sys/uvm/uvm_glue.c
diff options
context:
space:
mode:
authorart <art@openbsd.org>2001-08-06 14:03:04 +0000
committerart <art@openbsd.org>2001-08-06 14:03:04 +0000
commit40cf655d069ebfa867ff024a2901255f5ec03aa2 (patch)
tree48232151cfae65f8a29f3a478c68837d98abb03d /sys/uvm/uvm_glue.c
parentUse pool to allocate extent region descriptors. (diff)
downloadwireguard-openbsd-40cf655d069ebfa867ff024a2901255f5ec03aa2.tar.xz
wireguard-openbsd-40cf655d069ebfa867ff024a2901255f5ec03aa2.zip
Add a new type voff_t (right now it's typedefed as off_t) used for offsets
into objects. Gives the possibilty to mmap beyond the size of vaddr_t. From NetBSD.
Diffstat (limited to 'sys/uvm/uvm_glue.c')
-rw-r--r--sys/uvm/uvm_glue.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/uvm/uvm_glue.c b/sys/uvm/uvm_glue.c
index e691af1ef15..ae01993b2f6 100644
--- a/sys/uvm/uvm_glue.c
+++ b/sys/uvm/uvm_glue.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: uvm_glue.c,v 1.17 2001/07/25 13:25:33 art Exp $ */
-/* $NetBSD: uvm_glue.c,v 1.30 1999/11/13 00:24:38 thorpej Exp $ */
+/* $OpenBSD: uvm_glue.c,v 1.18 2001/08/06 14:03:04 art Exp $ */
+/* $NetBSD: uvm_glue.c,v 1.31 2000/03/26 20:54:47 kleink Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -189,7 +189,7 @@ uvm_useracc(addr, len, rw)
vm_map_lock_read(map);
rv = uvm_map_checkprot(map, trunc_page((vaddr_t)addr),
- round_page((vaddr_t)addr+len), prot);
+ round_page((vaddr_t)addr+len), prot);
vm_map_unlock_read(map);
return(rv);