DragonFly BSD
DragonFly kernel List (threaded) for 2011-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

i386 version of cpu_sfence()


From: Sepherosa Ziehau <sepherosa@xxxxxxxxx>
Date: Fri, 28 Jan 2011 16:02:01 +0800

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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]