Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm32 Actually use zero_p now that we pass it in.



details:   https://anonhg.NetBSD.org/src/rev/3f1adc37195f
branches:  trunk
changeset: 785157:3f1adc37195f
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Feb 27 22:15:46 2013 +0000

description:
Actually use zero_p now that we pass it in.

diffstat:

 sys/arch/arm/arm32/arm32_kvminit.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r ff1ac646dffe -r 3f1adc37195f sys/arch/arm/arm32/arm32_kvminit.c
--- a/sys/arch/arm/arm32/arm32_kvminit.c        Wed Feb 27 21:25:05 2013 +0000
+++ b/sys/arch/arm/arm32/arm32_kvminit.c        Wed Feb 27 22:15:46 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arm32_kvminit.c,v 1.17 2013/02/27 16:55:39 matt Exp $  */
+/*     $NetBSD: arm32_kvminit.c,v 1.18 2013/02/27 22:15:46 matt Exp $  */
 
 /*
  * Copyright (c) 2002, 2003, 2005  Genetec Corporation.  All rights reserved.
@@ -122,7 +122,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.17 2013/02/27 16:55:39 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: arm32_kvminit.c,v 1.18 2013/02/27 22:15:46 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -358,7 +358,8 @@
 
        bmi->bmi_freepages -= npages;
 
-       memset((void *)pv->pv_va, 0, nbytes);
+       if (zero_p)
+               memset((void *)pv->pv_va, 0, nbytes);
 }
 
 void
@@ -542,7 +543,7 @@
        if (xscale_use_minidata)
 #endif          
                valloc_pages(bmi, extrapv, nextrapages,
-                   VM_PROT_READ|VM_PROT_WRITE, 0, false);
+                   VM_PROT_READ|VM_PROT_WRITE, 0, true);
 #endif
 
        /*



Home | Main Index | Thread Index | Old Index