kernel - Fix pmap_change_attr() use cases.
authorMatthew Dillon <dillon@apollo.backplane.com>
Mon, 20 Jul 2015 18:27:49 +0000 (11:27 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Mon, 20 Jul 2015 18:27:49 +0000 (11:27 -0700)
commit96acd33e6b38c6295e93b3de1b6f125ce6802974
tree362f469a7e57daee710f9878a96d29f4f73e0e07
parent5d3157c70203ae44870e41fc589db5a350b922c3
kernel - Fix pmap_change_attr() use cases.

* In DragonFly this function takes a page count, not a byte count.
  some calls were made with a byte count, others with a page count.

  Note that in FreeBSD this function takes a byte count, but after
  reviewing the use cases I decided to normalize it all to a page count.

* Fixes reported DRM issues.  Might also fix test branch ehci/ethernet
  panics due to memory corruption when DRM is loaded.
sys/dev/drm/include/asm/cacheflush.h
sys/platform/pc64/x86_64/pmap.c