summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2001-09-03 21:45:08 +0000
committerdrahn <drahn@openbsd.org>2001-09-03 21:45:08 +0000
commit04a936368bd14dcf6e2d2d41f327ec56f24fd433 (patch)
tree7c918837a651e884b4947f5d92dc61dabf645e8e
parentTidying, some from NetBSD. (diff)
downloadwireguard-openbsd-04a936368bd14dcf6e2d2d41f327ec56f24fd433.tar.xz
wireguard-openbsd-04a936368bd14dcf6e2d2d41f327ec56f24fd433.zip
Zero pages before handing them over to the VM layer.
This seems to improve the reliablity of the system. Thanks to those who tested this.
-rw-r--r--sys/arch/powerpc/powerpc/pmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/powerpc/powerpc/pmap.c b/sys/arch/powerpc/powerpc/pmap.c
index 2eb06658762..b216b46d19d 100644
--- a/sys/arch/powerpc/powerpc/pmap.c
+++ b/sys/arch/powerpc/powerpc/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.41 2001/08/25 05:06:29 drahn Exp $ */
+/* $OpenBSD: pmap.c,v 1.42 2001/09/03 21:45:08 drahn Exp $ */
/* $NetBSD: pmap.c,v 1.1 1996/09/30 16:34:52 ws Exp $ */
/*
@@ -645,6 +645,7 @@ avail_end = npgs * NBPG;
}
for (mp = avail; mp->size; mp++) {
+ bzero((void*)mp->start, mp->size);
uvm_page_physload(atop(mp->start), atop(mp->start + mp->size),
atop(mp->start), atop(mp->start + mp->size),
VM_FREELIST_DEFAULT);