]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arm64: add definition for IS_SSTEP_TRAP()
authorMitchell Horne <mhorne@FreeBSD.org>
Mon, 1 Mar 2021 14:01:25 +0000 (10:01 -0400)
committerMitchell Horne <mhorne@FreeBSD.org>
Mon, 1 Mar 2021 14:04:23 +0000 (10:04 -0400)
commite152c882738ffe26a2f52e420e2a92c014943207
treeb0dd5ab0911517d4f19f34e9ed5c396d3f803d96
parentbd0b7cbf5ac1baff4211e09584e0b86d4d96228b
arm64: add definition for IS_SSTEP_TRAP()

arm64 has a distinct exception code for single-step, so we can use this
to detect when an unexpected SS trap is encountered, or when an expected
one is not. See db_stop_at_pc().

Reviewed by: markj, jhb
MFC after: 5 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28942
sys/arm64/include/db_machdep.h