i386 version of cpu_sfence()

看板DFBSD_kernel作者時間15年前 (2011/01/28 16:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/4 (看更多)
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
文章代碼(AID): #1DGdy65U (DFBSD_kernel)
文章代碼(AID): #1DGdy65U (DFBSD_kernel)