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:
parent
9f4c522e6b
commit
ab42fbe2e9
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user