powerpc: Fix typo in thread register copy
Should be saving off td0's register's, not td's.
This commit is contained in:
parent
35a1aa5f9c
commit
eb937f67f8
@ -1097,7 +1097,7 @@ cpu_copy_thread(struct thread *td, struct thread *td0)
|
||||
struct callframe *cf;
|
||||
|
||||
/* Ensure td0 pcb is up to date. */
|
||||
if (td == curthread)
|
||||
if (td0 == curthread)
|
||||
cpu_save_thread_regs(td0);
|
||||
|
||||
pcb2 = td->td_pcb;
|
||||
|
Loading…
Reference in New Issue
Block a user