PERFORCE change 28597 for review

Marcel Moolenaar marcel at FreeBSD.org
Tue Apr 8 19:07:50 PDT 2003


http://perforce.freebsd.org/chv.cgi?CH=28597

Change 28597 by marcel at marcel_nfs on 2003/04/08 19:07:43

	In cpu_fork(): call cpu_set_fork_handler() to initialize the
	PCB for the callout function. This centralizes the details
	and makes it easier to change.
	As a side-effect, we now don't set r5 anymore. It was not
	needed anyway.

Affected files ...

.. //depot/projects/ia64_epc/sys/ia64/ia64/vm_machdep.c#6 edit

Differences ...

==== //depot/projects/ia64_epc/sys/ia64/ia64/vm_machdep.c#6 (text+ko) ====

@@ -289,11 +289,9 @@
 	 * ABI - a function can assume that the 16 bytes above sp are
 	 * available as scratch space.
 	 */
-	td2->td_pcb->pcb_special.sp = (u_int64_t)p2tf - 16;	
-	td2->td_pcb->pcb_preserved.gr4 = (u_int64_t)fork_return;
-	td2->td_pcb->pcb_preserved.gr5 = FDESC_FUNC(exception_restore);
-	td2->td_pcb->pcb_preserved.gr6 = (u_int64_t)td2;
+	td2->td_pcb->pcb_special.sp = (u_int64_t)p2tf - 16;
 	td2->td_pcb->pcb_special.rp = FDESC_FUNC(fork_trampoline);
+	cpu_set_fork_handler(td2, (void (*)(void*))fork_return, td2);
 }
 
 /*


More information about the p4-projects mailing list