summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-09-03 21:45:09 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-09-03 21:45:09 +0000
commit3cebd5ffccbb28ed7cc78478b87d95e6e4bab48a (patch)
treefdb30829eef5b5f194cb2e2c80faa8d258963a72 /sys/arch
parentf1cdbb298c5c6a07a3a8e004ac656c22c9d6b98e (diff)
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.
Diffstat (limited to 'sys/arch')
-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);