From dcb93e6c955b320316982f0c9532ae0b0f8663ea Mon Sep 17 00:00:00 2001 From: alc Date: Fri, 27 Nov 2009 20:24:11 +0000 Subject: Simplify the invocation of vm_fault(). Specifically, eliminate the flag VM_FAULT_DIRTY. The information provided by this flag can be trivially inferred by vm_fault(). Discussed with: kib --- sys/arm/arm/trap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/arm') diff --git a/sys/arm/arm/trap.c b/sys/arm/arm/trap.c index 348ec5a..284e797 100644 --- a/sys/arm/arm/trap.c +++ b/sys/arm/arm/trap.c @@ -425,8 +425,7 @@ data_abort_handler(trapframe_t *tf) p->p_lock++; PROC_UNLOCK(p); } - error = vm_fault(map, va, ftype, (ftype & VM_PROT_WRITE) ? - VM_FAULT_DIRTY : VM_FAULT_NORMAL); + error = vm_fault(map, va, ftype, VM_FAULT_NORMAL); pcb->pcb_onfault = onfault; if (map != kernel_map) { -- cgit v1.1