From 61df3e45d21ca983d79c810fad33add84e45f38b Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 18 Feb 2013 05:14:13 +0000 Subject: [PATCH] Supply VM_PROT_EXECUTE to pmap_fault_fixup when trying to fixup prefetch aborts. --- sys/arch/arm/arm32/fault.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm/arm32/fault.c b/sys/arch/arm/arm32/fault.c index f8733fcb409e..88f51a8347b9 100644 --- a/sys/arch/arm/arm32/fault.c +++ b/sys/arch/arm/arm32/fault.c @@ -1,4 +1,4 @@ -/* $NetBSD: fault.c,v 1.87 2012/12/10 01:37:30 matt Exp $ */ +/* $NetBSD: fault.c,v 1.88 2013/02/18 05:14:13 matt Exp $ */ /* * Copyright 2003 Wasabi Systems, Inc. @@ -81,7 +81,7 @@ #include "opt_kgdb.h" #include -__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.87 2012/12/10 01:37:30 matt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: fault.c,v 1.88 2013/02/18 05:14:13 matt Exp $"); #include #include @@ -832,7 +832,7 @@ prefetch_abort_handler(trapframe_t *tf) #ifdef DEBUG last_fault_code = -1; #endif - if (pmap_fault_fixup(map->pmap, va, VM_PROT_READ, 1)) { + if (pmap_fault_fixup(map->pmap, va, VM_PROT_READ|VM_PROT_EXECUTE, 1)) { UVMHIST_LOG (maphist, " <- emulated", 0, 0, 0, 0); goto out; }