diff --git a/sys/powerpc/powerpc/swtch64.S b/sys/powerpc/powerpc/swtch64.S index 0b22c4edb41..fd4806d5bf5 100644 --- a/sys/powerpc/powerpc/swtch64.S +++ b/sys/powerpc/powerpc/swtch64.S @@ -279,6 +279,7 @@ ENTRY(savectx) mfcr %r4 /* Save the condition register */ std %r4,PCB_CR(%r3) std %r2,PCB_TOC(%r3) /* Save the TOC pointer */ + std %r1,PCB_SP(%r3) /* Save the stack frame pointer */ mflr %r4 /* Save the link register */ std %r4,PCB_LR(%r3) blr