[Bug 225321] dtrace/powerpc64: System crash
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Mon Feb 19 12:27:19 UTC 2018
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225321
--- Comment #2 from Breno Leitao <breno.leitao at gmail.com> ---
Hi Justin,
We are debugging this one in background, and the problem seems to be a wrong
stack pointer (r1). Mainly after restoring it at
sys/powerpc/aim/trap_subr64.S:
ASENTRY_NOPROF(breakpoint)
....
dbtrap:
/* Write the trap vector to SPRG3 by computing LR & 0xff00 */
mflr %r1
andi. %r1,%r1,0xff00
mtsprg3 %r1
ld %r1,TRAP_TOCBASE(0) /* get new SP */
ld %r1,TOC_REF(tmpstk)(%r1)
addi %r1,%r1,(TMPSTKSZ-48)
We have a working patch already, and I would suggest the authors to share it.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ppc
mailing list