HomeFreeBSD

x86: use x86_clear_dbregs() on fork

Description

x86: use x86_clear_dbregs() on fork

instead of manual zeroing of the debug registers file in pcb.
This centralizes the cleaning code, but the practical difference is
that PCB_DBREGS flag is cleared, saving some operations on context
switching.

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:20 PM
Reviewer
jhb
Differential Revision
D29687: x86: add x86_clear_dbregs() and ensure all ABI exec set_regs method clear debug registers file
Parents
rGa8b75a57c9b2: x86: add x86_clear_dbregs() helper
Branches
Unknown
Tags
Unknown