Port-amd64 archive

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

Re: Why does membar_consumer() do anything on x86_64?



On Sat, Jul 10, 2010 at 10:59:58PM -0700, Dennis Ferguson wrote:

> to use.  Since load-only and store-only order are also things that Intel
> processors guarantee

Not true, see the large comment block in this file:

http://nxr.netbsd.org/xref/src/sys/arch/x86/include/lock.h

> membar_consumer() and membar_producer() in particular would need to do
> anything at all on Intel CPUs.

There is a lot of misleading information on the Internet about this
topic.  Sometimes even the Intel/AMD manuals are confused about it!



Home | Main Index | Thread Index | Old Index