kernel - Add needed ccfence and more error checks
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Sep 2019 14:33:15 +0000 (07:33 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 14 Sep 2019 14:33:15 +0000 (07:33 -0700)
commit0ad80e33db0a3241abcd15552e6cf0c61ca54543
tree826a330b4ae52ad4ef216ca1bd8c51123bcda20b
parent1b60b4ee5897cd2eee7bbd10c83bda1b533534ba
kernel - Add needed ccfence and more error checks

* Add a cpu_ccfence() to PMAP_PAGE_BACKING_SCAN in order to prevent
  over-optimization of the ipte load by the compiler.

* Add machine-dependent assertion in the vm_page_free*() path to
  ensure that the page is not normally mapped at the time of the
  free.
sys/platform/pc64/include/pmap.h
sys/platform/pc64/x86_64/pmap.c
sys/platform/pc64/x86_64/pmap_inval.c
sys/vm/vm_page.c