git: kernel -- Add MONITOR and MWAIT routine to i386 kernel.

Venkatesh Srinivas vsrinivas at crater.dragonflybsd.org
Sat Dec 18 07:39:55 PST 2010


commit 2a06bc07b3de833a671be012eeebb1121ce9da8a
Author: Venkatesh Srinivas <me at endeavour.zapto.org>
Date:   Sat Dec 18 07:24:58 2010 -0800

    kernel -- Add MONITOR and MWAIT routine to i386 kernel.
    
    Provides cpu_mmw_spin() and cpu_mmw_mwait(), both of which wait for a given
    memory cell to contain a value different from an expected value. _spin()
    merely spins on the cell; _mwait() uses the SSE3 MONITOR/MWAIT isns.

Summary of changes:
 sys/cpu/i386/misc/{bzeront.s => monitor.s} |   69 +++++++++++++++++++++++-----
 sys/platform/pc32/conf/files               |    1 +
 sys/platform/pc32/i386/identcpu.c          |    2 +
 sys/sys/param.h                            |    1 +
 sys/sys/systm.h                            |    2 +
 5 files changed, 63 insertions(+), 12 deletions(-)
 copy sys/cpu/i386/misc/{bzeront.s => monitor.s} (58%)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/2a06bc07b3de833a671be012eeebb1121ce9da8a


-- 
DragonFly BSD source repository





More information about the Commits mailing list