Module Name: src Committed By: matt Date: Mon Jun 13 21:12:51 UTC 2011
Modified Files: src/sys/arch/powerpc/booke: trap.c Log Message: If uvm_fault returns EACCES, convert it to EFAULT. To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/powerpc/booke/trap.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/powerpc/booke/trap.c diff -u src/sys/arch/powerpc/booke/trap.c:1.8 src/sys/arch/powerpc/booke/trap.c:1.9 --- src/sys/arch/powerpc/booke/trap.c:1.8 Sun Jun 12 05:32:38 2011 +++ src/sys/arch/powerpc/booke/trap.c Mon Jun 13 21:12:50 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: trap.c,v 1.8 2011/06/12 05:32:38 matt Exp $ */ +/* $NetBSD: trap.c,v 1.9 2011/06/13 21:12:50 matt Exp $ */ /*- * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc. * All rights reserved. @@ -39,7 +39,7 @@ #include <sys/cdefs.h> -__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.8 2011/06/12 05:32:38 matt Exp $"); +__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.9 2011/06/13 21:12:50 matt Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -177,6 +177,8 @@ rv = uvm_fault(map, trunc_page(va), ftype); if (rv == 0) uvm_grow(l->l_proc, trunc_page(va)); + if (rv == EACCES) + rv = EFAULT; #ifdef KERN_SA l->l_pflag &= ~LP_SA_PAGEFAULT; #endif