git: kernel - Add needed ccfence and more error checks

Matthew Dillon dillon at crater.dragonflybsd.org
Sat Sep 14 07:38:17 PDT 2019


commit 0ad80e33db0a3241abcd15552e6cf0c61ca54543
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Sat Sep 14 07:33:15 2019 -0700

    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.

Summary of changes:
 sys/platform/pc64/include/pmap.h      |  3 +++
 sys/platform/pc64/x86_64/pmap.c       | 13 +++++++++++--
 sys/platform/pc64/x86_64/pmap_inval.c |  4 ++++
 sys/vm/vm_page.c                      |  3 +++
 4 files changed, 21 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0ad80e33db0a3241abcd15552e6cf0c61ca54543


-- 
DragonFly BSD source repository


More information about the Commits mailing list