From owner-p4-projects@FreeBSD.ORG Fri Jan 8 21:44:47 2010 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 55D64106568D; Fri, 8 Jan 2010 21:44:47 +0000 (UTC) Delivered-To: perforce@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 19E6A106566B for ; Fri, 8 Jan 2010 21:44:47 +0000 (UTC) (envelope-from bz@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 0883F8FC15 for ; Fri, 8 Jan 2010 21:44:47 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id o08LiktP034808 for ; Fri, 8 Jan 2010 21:44:46 GMT (envelope-from bz@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id o08LikYp034806 for perforce@freebsd.org; Fri, 8 Jan 2010 21:44:46 GMT (envelope-from bz@freebsd.org) Date: Fri, 8 Jan 2010 21:44:46 GMT Message-Id: <201001082144.o08LikYp034806@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bz@freebsd.org using -f From: "Bjoern A. Zeeb" To: Perforce Change Reviews Precedence: bulk Cc: Subject: PERFORCE change 172803 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2010 21:44:47 -0000 http://p4web.freebsd.org/chv.cgi?CH=172803 Change 172803 by bz@bz_dumpster on 2010/01/08 21:44:34 Reflect SVN r199868: 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(). Affected files ... .. //depot/projects/s390/sys/s390/s390/trap.c#13 edit .. //depot/projects/s390/sys/s390/s390/trap.h#3 edit Differences ... ==== //depot/projects/s390/sys/s390/s390/trap.c#13 (text+ko) ==== @@ -258,7 +258,6 @@ vm_prot_t fault_type; struct thread *td; struct pcb *pcb; - int fault_flags; vm_offset_t va; struct proc *p; int tei, rv; @@ -273,12 +272,10 @@ if (!usermode) printf("Protection exception in kernel"); fault_type = VM_PROT_WRITE; - fault_flags = VM_FAULT_DIRTY; tf->tf_psw.addr -= sysarea.program_ilc & 0x7; } else { /* How to figure out actual type of access? */ fault_type = VM_PROT_READ; - fault_flags = VM_FAULT_NORMAL; } /* if (sysarea.trans_exc_ident & 0x2) { */ @@ -294,7 +291,7 @@ p->p_lock++; PROC_UNLOCK(p); - rv = vm_fault(&p->p_vmspace->vm_map, va, fault_type, fault_flags); + rv = vm_fault(&p->p_vmspace->vm_map, va, fault_type, VM_FAULT_NORMAL); PROC_LOCK(p); p->p_lock--; ==== //depot/projects/s390/sys/s390/s390/trap.h#3 (text+ko) ====