HomeFreeBSD

x86: add x86_clear_dbregs() helper

Description

x86: add x86_clear_dbregs() helper

Move the code from exec_setregs() to reset debug registers state on exec,
to the x86_clear_dbregs() helper

Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D29687

Details

Provenance
kibAuthored on Apr 9 2021, 11:19 PM
Reviewer
jhb
Differential Revision
D29687: x86: add x86_clear_dbregs() and ensure all ABI exec set_regs method clear debug registers file
Parents
rG86e352c934e5: Fix a typo in a comment: frame -> framework.
Branches
Unknown
Tags
Unknown