Date: Tue, 8 Apr 2003 19:07:48 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 28597 for review Message-ID: <200304090207.h3927mdp023089@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=28597 Change 28597 by marcel@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); } /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304090207.h3927mdp023089>