HomeFreeBSD

x86: consolidate hw watchpoint logic into new file

Description

x86: consolidate hw watchpoint logic into new file

This is a prerequisite to using these functions outside of ddb, but also
provides some cleanup and minor refactoring. This code is almost
entirely duplicated between the two implementations, the only
significant difference being the lack of dbreg synchronization on i386.

Cleanups are:

  • demote some internal functions to static
  • use the constant NDBREGS instead of a '4' literal
  • remove K&R definitions
  • some added comments

Reviewed by: kib, jhb
Sponsored by: NetApp, Inc.
Sponsored by: Klara, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D29153

Details

Provenance
mhorneAuthored on Mar 19 2021, 7:39 PM
Reviewer
kib
Differential Revision
D29153: x86: consolidate hw watchpoint logic into new file
Parents
rGa1d803c16206: cxgbe(4): make it safe to call setup_memwin repeatedly.
Branches
Unknown
Tags
Unknown