git: kernel - Add memory barriers to more __asm functions.

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jan 27 17:33:16 PST 2021


commit 9ba9002ba9990c491fa3efd8fdcf70b59e261ef2
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jan 27 17:20:03 2021 -0800

    kernel - Add memory barriers to more __asm functions.
    
       * Add memory barriers to more __asm functions that have memory
         side-effects.  This should help prevent any unexpected instruction
         reordering around these functions.
    
    Submitted-by: chicken
    Bug-ID: #3263

Summary of changes:
 sys/cpu/x86_64/include/cpufunc.h | 28 ++++++++++++++++------------
 1 file changed, 16 insertions(+), 12 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9ba9002ba9990c491fa3efd8fdcf70b59e261ef2


-- 
DragonFly BSD source repository



More information about the Commits mailing list