git: kernel - cpu_pause() needs to be memory-modifying

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Feb 22 21:46:02 PST 2013


commit 106d187cc4eaccbbddaab6e02663948653c22dc9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Feb 22 21:44:55 2013 -0800

    kernel - cpu_pause() needs to be memory-modifying
    
    * __asm __volatile isn't enough, it also needs the "memory"
      attribute to prevent gcc from optimizing out memory loads around
      loops using cpu_pause().

Summary of changes:
 sys/cpu/i386/include/cpufunc.h   | 2 +-
 sys/cpu/x86_64/include/cpufunc.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/106d187cc4eaccbbddaab6e02663948653c22dc9


-- 
DragonFly BSD source repository



More information about the Commits mailing list