powerpc: Fix typo in thread register copy

Should be saving off td0's register's, not td's.
This commit is contained in:
Justin Hibbits 2021-09-04 11:43:17 -05:00
parent 35a1aa5f9c
commit eb937f67f8

View File

@ -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;