diff options
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/alpha/linux/linux_machdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/alpha/linux/linux_machdep.c b/sys/alpha/linux/linux_machdep.c index 97674f50785d2..12a216092e700 100644 --- a/sys/alpha/linux/linux_machdep.c +++ b/sys/alpha/linux/linux_machdep.c @@ -127,6 +127,7 @@ linux_clone(struct thread *td, struct linux_clone_args *args) { int error, ff = RFPROC | RFSTOPPED; struct proc *p2; + struct thread *td; int exit_signal; vm_offset_t start; @@ -166,7 +167,8 @@ linux_clone(struct thread *td, struct linux_clone_args *args) PROC_LOCK(p2); p2->p_sigparent = exit_signal; PROC_UNLOCK(p2); - FIRST_THREAD_IN_PROC(p2)->td_pcb->pcb_hw.apcb_usp = (unsigned long)args->stack; + td = FIRST_THREAD_IN_PROC(p2); + td->td_pcb->pcb_hw.apcb_usp = (unsigned long)args->stack; #ifdef DEBUG if (ldebug(clone)) |
