Save the link register in savectx().

Pointed out by:	jhb
This commit is contained in:
Justin Hibbits 2015-10-06 01:24:46 +00:00
parent 777f366fb6
commit db0d64f24a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=288909
2 changed files with 4 additions and 0 deletions

View File

@ -187,6 +187,8 @@ ENTRY(savectx)
stmw %r12,PCB_CONTEXT(%r3) /* Save the non-volatile GP regs */
mfcr %r4 /* Save the condition register */
stw %r4,PCB_CR(%r3)
mflr %r4 /* Save the link register */
stw %r4,PCB_LR(%r3)
blr
/*

View File

@ -255,6 +255,8 @@ ENTRY(savectx)
mfcr %r4 /* Save the condition register */
std %r4,PCB_CR(%r3)
std %r2,PCB_TOC(%r3) /* Save the TOC pointer */
mflr %r4 /* Save the link register */
std %r4,PCB_LR(%r3)
blr
/*