summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-02-08 04:05:38 +0000
committermarcel <marcel@FreeBSD.org>2012-02-08 04:05:38 +0000
commitb1e43d714544cbc14117ef57eba24da11224983a (patch)
tree165e3cc5a3b97678b5536bbb52293180e4903b3c
parente200cb94e2d78cce4e4c50a9a5ee26334c9ebe71 (diff)
downloadFreeBSD-src-b1e43d714544cbc14117ef57eba24da11224983a.zip
FreeBSD-src-b1e43d714544cbc14117ef57eba24da11224983a.tar.gz
Rev. 228360 moved the call to cpu_set_upcall() to happen before
td_proc gets initialized in td (=newtd). Use td0 instead. MFC after: 3 days
-rw-r--r--sys/ia64/ia64/vm_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/vm_machdep.c b/sys/ia64/ia64/vm_machdep.c
index 1711f1a..09987fd 100644
--- a/sys/ia64/ia64/vm_machdep.c
+++ b/sys/ia64/ia64/vm_machdep.c
@@ -192,7 +192,7 @@ cpu_set_upcall(struct thread *td, struct thread *td0)
bcopy(td0->td_pcb, pcb, sizeof(*pcb));
pcb->pcb_special.bspstore = td->td_kstack;
pcb->pcb_special.pfs = 0;
- pcb->pcb_current_pmap = vmspace_pmap(td->td_proc->p_vmspace);
+ pcb->pcb_current_pmap = vmspace_pmap(td0->td_proc->p_vmspace);
pcb->pcb_special.sp = (uintptr_t)tf - 16;
pcb->pcb_special.rp = FDESC_FUNC(fork_trampoline);
cpu_set_fork_handler(td, (void (*)(void*))fork_return, td);
OpenPOWER on IntegriCloud