svn commit: r288909 - head/sys/powerpc/powerpc
Justin Hibbits
jhibbits at FreeBSD.org
Tue Oct 6 01:24:47 UTC 2015
Author: jhibbits
Date: Tue Oct 6 01:24:46 2015
New Revision: 288909
URL: https://svnweb.freebsd.org/changeset/base/288909
Log:
Save the link register in savectx().
Pointed out by: jhb
Modified:
head/sys/powerpc/powerpc/swtch32.S
head/sys/powerpc/powerpc/swtch64.S
Modified: head/sys/powerpc/powerpc/swtch32.S
==============================================================================
--- head/sys/powerpc/powerpc/swtch32.S Tue Oct 6 01:05:07 2015 (r288908)
+++ head/sys/powerpc/powerpc/swtch32.S Tue Oct 6 01:24:46 2015 (r288909)
@@ -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
/*
Modified: head/sys/powerpc/powerpc/swtch64.S
==============================================================================
--- head/sys/powerpc/powerpc/swtch64.S Tue Oct 6 01:05:07 2015 (r288908)
+++ head/sys/powerpc/powerpc/swtch64.S Tue Oct 6 01:24:46 2015 (r288909)
@@ -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
/*
More information about the svn-src-all
mailing list