i386 version of cpu_sfence()

Sepherosa Ziehau sepherosa at gmail.com
Fri Jan 28 00:05:41 PST 2011


Hi all,

i386 version of cpu_sfence(), it is just asm volatile ("" :::"memory")

According to the instruction set, sfence should also ensures that the
"global visibility" (i.e. empty CPU store buffer) of the stores before
sfence.
So should we do the same as cpu_mfence(), i.e. use a locked memory access?

Best Regards,
sephe

-- 
Tomorrow Will Never Die





More information about the Kernel mailing list