]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit - sys/amd64/amd64/pmap.c
Fix some nits in 1G page support in the amd64 pmap.
authorMark Johnston <markj@FreeBSD.org>
Sat, 19 Sep 2020 15:22:04 +0000 (15:22 +0000)
committerMark Johnston <markj@FreeBSD.org>
Sat, 19 Sep 2020 15:22:04 +0000 (15:22 +0000)
commitd26ab2bec024b00bbb753248256fe68265280bfa
tree2ae636f698a4050b335935958ca4d7ec8e483448
parent918d5f5908907c63ed1c8054e805a6a7d4850917
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