Module Name: src Committed By: jym Date: Thu Jul 15 22:19:19 UTC 2010
Modified Files: src/sys/arch/i386/i386: machdep.c Log Message: pte0 is used to map the page required by bioscall() trampoline code, so add VM_PROT_EXECUTE protection for it. Currently, this does not change much, as page execute permission is not enforced for i386 (except for Xen, where BIOS calls are not used anyway). To generate a diff of this commit: cvs rdiff -u -r1.688 -r1.689 src/sys/arch/i386/i386/machdep.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/arch/i386/i386/machdep.c diff -u src/sys/arch/i386/i386/machdep.c:1.688 src/sys/arch/i386/i386/machdep.c:1.689 --- src/sys/arch/i386/i386/machdep.c:1.688 Wed Jul 14 14:42:40 2010 +++ src/sys/arch/i386/i386/machdep.c Thu Jul 15 22:19:19 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.688 2010/07/14 14:42:40 jym Exp $ */ +/* $NetBSD: machdep.c,v 1.689 2010/07/15 22:19:19 jym Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000, 2004, 2006, 2008, 2009 @@ -67,7 +67,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.688 2010/07/14 14:42:40 jym Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.689 2010/07/15 22:19:19 jym Exp $"); #include "opt_beep.h" #include "opt_compat_ibcs2.h" @@ -1236,7 +1236,7 @@ paddr = 4 * PAGE_SIZE; vaddr = (vaddr_t)vtopte(0); - pmap_kenter_pa(vaddr, paddr, VM_PROT_READ | VM_PROT_WRITE, 0); + pmap_kenter_pa(vaddr, paddr, VM_PROT_ALL, 0); pmap_update(pmap_kernel()); /* make sure it is clean before using */ memset((void *)vaddr, 0, PAGE_SIZE);