svn commit: r347177 - stable/12/sys/powerpc/powerpc
Justin Hibbits
jhibbits at FreeBSD.org
Mon May 6 03:39:26 UTC 2019
Author: jhibbits
Date: Mon May 6 03:39:25 2019
New Revision: 347177
URL: https://svnweb.freebsd.org/changeset/base/347177
Log:
MFC r344871:
powerpc: Save stack pointer in savectx
This allows 'show acttrace' to show backtrace on processes currently running
on CPUs.
Reported by: Brandon Bergren
Modified:
stable/12/sys/powerpc/powerpc/swtch32.S
stable/12/sys/powerpc/powerpc/swtch64.S
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/powerpc/powerpc/swtch32.S
==============================================================================
--- stable/12/sys/powerpc/powerpc/swtch32.S Mon May 6 03:35:44 2019 (r347176)
+++ stable/12/sys/powerpc/powerpc/swtch32.S Mon May 6 03:39:25 2019 (r347177)
@@ -195,6 +195,7 @@ ENTRY(savectx)
stmw %r12,PCB_CONTEXT(%r3) /* Save the non-volatile GP regs */
mfcr %r4 /* Save the condition register */
stw %r4,PCB_CR(%r3)
+ stw %r1,PCB_SP(%r3) /* Save the stack pointer */
mflr %r4 /* Save the link register */
stw %r4,PCB_LR(%r3)
blr
Modified: stable/12/sys/powerpc/powerpc/swtch64.S
==============================================================================
--- stable/12/sys/powerpc/powerpc/swtch64.S Mon May 6 03:35:44 2019 (r347176)
+++ stable/12/sys/powerpc/powerpc/swtch64.S Mon May 6 03:39:25 2019 (r347177)
@@ -276,6 +276,7 @@ ENTRY(savectx)
mfcr %r4 /* Save the condition register */
std %r4,PCB_CR(%r3)
+ std %r1,PCB_SP(%r3) /* Save the stack pointer */
std %r2,PCB_TOC(%r3) /* Save the TOC pointer */
mflr %r4 /* Save the link register */
std %r4,PCB_LR(%r3)
More information about the svn-src-all
mailing list