pmap: Refactor PG_*_IDX and pmap_bits_default definitions
authorAaron LI <aly@aaronly.me>
Sat, 5 Jun 2021 03:57:23 +0000 (11:57 +0800)
committerAaron LI <aly@aaronly.me>
Thu, 24 Jun 2021 14:32:06 +0000 (22:32 +0800)
commit24aa2e44a85bc12e46a45c21451732106bb8f88a
tree6abdeac6f04b728fe2ffc4ff60de3866a46de082
parenta69b35e0ffe43d82670aff5b2f11b21dadfe5bae
pmap: Refactor PG_*_IDX and pmap_bits_default definitions

Refactor PG_*_IDX definitions by using an enumeration, and define the
pmap_bits_default[] array with named indices, making its items more
cleaer.

In addition, drop the unused 'PG_UNUSED10_IDX' item and fix some wrong
comments.

No functional changes.
sys/platform/pc64/include/pmap.h
sys/platform/pc64/x86_64/pmap.c