Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jun 2004 09:43:32 GMT
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 54411 for review
Message-ID:  <200406080943.i589hWt2015209@repoman.freebsd.org>

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

Change 54411 by jmallett@jmallett_oingo on 2004/06/08 09:43:13

	mumble... this is a hack...  well, half of it.  the other half
	is correct and because I didn't understand when cpu_set_thread_fork_monkeys
	would be called (monkeys!!!)

Affected files ...

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

Differences ...

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

@@ -121,13 +121,14 @@
 	td->td_pcb =
 	    (struct pcb *)(td->td_kstack + KSTACK_PAGES * PAGE_SIZE) - 1;
 	td->td_frame = (struct trapframe *)td->td_pcb - 1;
+	td->td_pcb->pcb_regs[11] = MIPS_SR_KX | MIPS_SR_INT_IE;
 }
 
 void
 cpu_set_fork_handler(struct thread *td, void (*func)(void *), void *arg)
 {
-	td->td_pcb->pcb_regs[10] = (register_t)func;
-	td->td_pcb->pcb_regs[0] = (register_t)arg;
+	td->td_pcb->pcb_regs[0] = (register_t)func;
+	td->td_pcb->pcb_regs[1] = (register_t)arg;
 }
 
 void



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