powerpc64: Fix stack setup in dbtrap
authorjhibbits <jhibbits@FreeBSD.org>
Sat, 23 Jun 2018 01:42:34 +0000 (01:42 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Sat, 23 Jun 2018 01:42:34 +0000 (01:42 +0000)
commitab4568c21187bfda93a7e8308deef765aca6e81e
tree507e5ad0e8bbd3da4f2dbed6aeaa027240c8c8fa
parentf79024012e73f055d8beaaf16bf667db19080914
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
sys/powerpc/aim/trap_subr64.S