PERFORCE change 54411 for review
Juli Mallett
jmallett at FreeBSD.org
Tue Jun 8 09:43:34 GMT 2004
http://perforce.freebsd.org/chv.cgi?CH=54411
Change 54411 by jmallett at 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
More information about the p4-projects
mailing list