kernel -- Add MONITOR and MWAIT routine to i386 kernel.
authorVenkatesh Srinivas <me@endeavour.zapto.org>
Sat, 18 Dec 2010 15:24:58 +0000 (07:24 -0800)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Sat, 18 Dec 2010 15:24:58 +0000 (07:24 -0800)
commit2a06bc07b3de833a671be012eeebb1121ce9da8a
tree8a2747db9e38a997c761d7c8224af63cf2243843
parent2a4189307741dbcfbe11b31d6cc51a4fb39a8cde
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.
sys/cpu/i386/misc/monitor.s [new file with mode: 0644]
sys/platform/pc32/conf/files
sys/platform/pc32/i386/identcpu.c
sys/sys/param.h
sys/sys/systm.h