HomeFreeBSD

amd64: cleanup pmap_init_pat().

Description

amd64: cleanup pmap_init_pat().

The pmap_works variable is always true for amd64. Remove it, the
branch in the initialization taken when false, and corresponding
sysctl.

Remove pat_table[] local array, work on pat_index[] directly.

Collapse whole initialization to not override already assigned values.

Add comment explaining the choice for PAT4 and PAT7.

Reviewed by: alc, markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
MFC note: Leave the sysctl around
Differential revision: https://reviews.freebsd.org/D19225

Details

Provenance
kibAuthored on
Reviewer
alc
Differential Revision
D19225: amd64: cleanup pmap_init_pat().
Parents
rS344255: Fix more places to use DEV_TYP_NONE instead of -1 to indicate 'no device'.
Branches
Unknown
Tags
Unknown