Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev mm_init: re-enable zero page protection.
details: https://anonhg.NetBSD.org/src/rev/875c3394b122
branches: trunk
changeset: 777528:875c3394b122
user: rmind <rmind%NetBSD.org@localhost>
date: Tue Feb 21 21:57:06 2012 +0000
description:
mm_init: re-enable zero page protection.
diffstat:
sys/dev/mm.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 3a46bb900d02 -r 875c3394b122 sys/dev/mm.c
--- a/sys/dev/mm.c Tue Feb 21 21:09:51 2012 +0000
+++ b/sys/dev/mm.c Tue Feb 21 21:57:06 2012 +0000
@@ -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 @@
/* 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;
Home |
Main Index |
Thread Index |
Old Index