Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2010 21:44:46 GMT
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 172803 for review
Message-ID:  <201001082144.o08LikYp034806@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) ====




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201001082144.o08LikYp034806>