summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorart <art@openbsd.org>2002-10-29 01:26:58 +0000
committerart <art@openbsd.org>2002-10-29 01:26:58 +0000
commit0710f0c45210d12b198ce9a372b9a67165626817 (patch)
tree532f2a3a63a602908f28ae2d297651d0e6a49506
parentdo not use asm for accessing the page tables since they are mapped now. (diff)
downloadwireguard-openbsd-0710f0c45210d12b198ce9a372b9a67165626817.tar.xz
wireguard-openbsd-0710f0c45210d12b198ce9a372b9a67165626817.zip
"len = entry->end - entry->start;" then logically "entry->start + len"
should be equal to "entry->end". (len is never changed)
-rw-r--r--sys/uvm/uvm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c
index e7437a1d03b..eff1798f895 100644
--- a/sys/uvm/uvm_map.c
+++ b/sys/uvm/uvm_map.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uvm_map.c,v 1.53 2002/10/17 22:08:37 art Exp $ */
+/* $OpenBSD: uvm_map.c,v 1.54 2002/10/29 01:26:58 art Exp $ */
/* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */
/*
@@ -1441,7 +1441,7 @@ uvm_unmap_remove(map, start, end, entry_list)
entry->end - vm_map_min(kernel_map));
} else {
pmap_remove(pmap_kernel(), entry->start,
- entry->start + len);
+ entry->end);
uvm_km_pgremove(entry->object.uvm_obj,
entry->start - vm_map_min(kernel_map),
entry->end - vm_map_min(kernel_map));