Module Name:    src
Committed By:   rmind
Date:           Tue Feb 21 21:57:06 UTC 2012

Modified Files:
        src/sys/dev: mm.c

Log Message:
mm_init: re-enable zero page protection.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/dev/mm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/mm.c
diff -u src/sys/dev/mm.c:1.15 src/sys/dev/mm.c:1.16
--- src/sys/dev/mm.c:1.15	Thu Jun 16 16:20:28 2011
+++ src/sys/dev/mm.c	Tue Feb 21 21:57:06 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: mm.c,v 1.15 2011/06/16 16:20:28 joerg Exp $	*/
+/*	$NetBSD: mm.c,v 1.16 2012/02/21 21:57:06 rmind Exp $	*/
 
 /*-
  * Copyright (c) 2002, 2008, 2010 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mm.c,v 1.15 2011/06/16 16:20:28 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mm.c,v 1.16 2012/02/21 21:57:06 rmind Exp $");
 
 #include "opt_compat_netbsd.h"
 
@@ -89,9 +89,7 @@ mm_init(void)
 	/* Read-only zero-page. */
 	pg = uvm_km_alloc(kernel_map, PAGE_SIZE, 0, UVM_KMF_WIRED|UVM_KMF_ZERO);
 	KASSERT(pg != 0);
-#if 0
 	pmap_protect(pmap_kernel(), pg, pg + PAGE_SIZE, VM_PROT_READ);
-#endif
 	pmap_update(pmap_kernel());
 	dev_zero_page = (void *)pg;
 

Reply via email to