powerpc64: Fix stack setup in dbtrap

r330610 relocated the DMAP from the base of memory to the base of the fourth
quadrant of memory.  This broke synthetic traps, such as KDB forced
breakpoints.  Use GET_TOCBASE() so the DMAP offset is handled.

Submitted by:	git_bdragon.rkt0.net
Differential Revision:	https://reviews.freebsd.org/D15973
This commit is contained in:
Justin Hibbits 2018-06-23 01:42:34 +00:00
parent 9f4c522e6b
commit ab42fbe2e9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335574

View File

@ -896,7 +896,7 @@ dbtrap:
andi. %r1,%r1,0xff00
mtsprg3 %r1
ld %r1,TRAP_TOCBASE(0) /* get new SP */
GET_TOCBASE(%r1) /* get new SP */
ld %r1,TOC_REF(tmpstk)(%r1)
addi %r1,%r1,(TMPSTKSZ-48)