]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix some nits in 1G page support in the amd64 pmap.
authormarkj <markj@FreeBSD.org>
Sat, 19 Sep 2020 15:22:04 +0000 (15:22 +0000)
committermarkj <markj@FreeBSD.org>
Sat, 19 Sep 2020 15:22:04 +0000 (15:22 +0000)
commit8e6c3975ecbdd655da6035b8acc36bee8ec3db3e
tree2ae636f698a4050b335935958ca4d7ec8e483448
parenta7ae2af195f0bb15035e141f43fc6eb2c6171389
Fix some nits in 1G page support in the amd64 pmap.

- Move assertions out of the main loop to avoid duplicate conditional
  expressions, and improve assertion messages.
- Fix va_next updates.  In some cases we were not doing the wraparound
  check before continuing the loop.
- Use the right va_next.  In pmap_advise() and pmap_copy() we would step
  through 1G pages 2M at a time.
- Copy 1G mappings in pmap_copy().

Reviewed by: alc, kib
MFC with: r365518
Sponsored by: Juniper Networks, Inc., Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D26463
sys/amd64/amd64/pmap.c