Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Aug 2004 15:04:22 +1000
From:      Tim Robbins <tjr@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Atomic operations on i386/amd64
Message-ID:  <20040805050422.GA41201@cat.robbins.dropbear.id.au>

next in thread | raw e-mail | index | archive | help
Is there any particular reason why atomic_load_acq_*() and
atomic_store_rel_*() are implemented with CMPXCHG and XCHG instead of
MOV on i386/amd64 UP?

Also, could we use MFENCE/LFENCE/SFENCE in combination with MOV on
SMP systems instead of LOCK CMPXCHG / (implied LOCK) XCHG?


Tim



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040805050422.GA41201>