Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jun 2004 05:45:33 GMT
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54397 for review
Message-ID:  <200406080545.i585jXP5055606@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=54397

Change 54397 by jmallett@jmallett_oingo on 2004/06/08 05:44:38

	Stop trying to be cute.  Set up RA and S0 (translated silently
	to A0) instead of trying a stupid savectx trick.

Affected files ...

.. //depot/projects/mips/sys/mips/mips/vm_machdep.c#15 edit

Differences ...

==== //depot/projects/mips/sys/mips/mips/vm_machdep.c#15 (text+ko) ====

@@ -126,9 +126,8 @@
 void
 cpu_set_fork_handler(struct thread *td, void (*func)(void *), void *arg)
 {
-	if (savectx(td->td_pcb)) {
-		(*func)(arg);
-	}
+	td->td_pcb->pcb_regs[10] = (register_t)func;
+	td->td_pcb->pcb_regs[0] = (register_t)arg;
 }
 
 void



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