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 In prefetch_abort, call uvm_fault with VM...



details:   https://anonhg.NetBSD.org/src/rev/4c9bb62abffe
branches:  trunk
changeset: 328378:4c9bb62abffe
user:      matt <matt%NetBSD.org@localhost>
date:      Tue Apr 01 18:00:42 2014 +0000

description:
In prefetch_abort, call uvm_fault with VM_PROT_EXEC

diffstat:

 sys/arch/arm/arm32/fault.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r fbe12862f6de -r 4c9bb62abffe sys/arch/arm/arm32/fault.c
--- a/sys/arch/arm/arm32/fault.c        Tue Apr 01 17:52:26 2014 +0000
+++ b/sys/arch/arm/arm32/fault.c        Tue Apr 01 18:00:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fault.c,v 1.98 2014/03/05 06:27:41 matt Exp $  */
+/*     $NetBSD: fault.c,v 1.99 2014/04/01 18:00:42 matt Exp $  */
 
 /*
  * Copyright 2003 Wasabi Systems, Inc.
@@ -81,7 +81,7 @@
 #include "opt_kgdb.h"
 
 #include <sys/types.h>
-__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.98 2014/03/05 06:27:41 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.99 2014/04/01 18:00:42 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -864,7 +864,7 @@
 #endif
 
        KASSERT(pcb->pcb_onfault == NULL);
-       error = uvm_fault(map, va, VM_PROT_READ);
+       error = uvm_fault(map, va, VM_PROT_READ|VM_PROT_EXECUTE);
 
        if (__predict_true(error == 0)) {
                UVMHIST_LOG (maphist, " <- uvm", 0, 0, 0, 0);



Home | Main Index | Thread Index | Old Index