summaryrefslogtreecommitdiffstats
path: root/sys/amd64/include/atomic.h
diff options
context:
space:
mode:
authorpirzyk <pirzyk@FreeBSD.org>2002-10-14 19:33:12 +0000
committerpirzyk <pirzyk@FreeBSD.org>2002-10-14 19:33:12 +0000
commit0bdb757b1abd0d2ef8428f0dbf05e27ee319f61c (patch)
treea151a94dfb202dce8ca1978e867a6aa99ae43fc1 /sys/amd64/include/atomic.h
parente74d131cbcc61445492e898f49fb7706185e5616 (diff)
downloadFreeBSD-src-0bdb757b1abd0d2ef8428f0dbf05e27ee319f61c.zip
FreeBSD-src-0bdb757b1abd0d2ef8428f0dbf05e27ee319f61c.tar.gz
Add a knob to turn on and off the CMPXCHG instruction on > i386 IA32 systems.
This is most beneficial for vmware client os installs. Reviewed by: jmallet, iedowse, tlambert2@mindspring.com MFC After: never, -STABLE does not currently use this instruction
Diffstat (limited to 'sys/amd64/include/atomic.h')
-rw-r--r--sys/amd64/include/atomic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/include/atomic.h b/sys/amd64/include/atomic.h
index 41f3e1a..919bd5a 100644
--- a/sys/amd64/include/atomic.h
+++ b/sys/amd64/include/atomic.h
@@ -117,7 +117,7 @@ extern void atomic_##NAME##_##TYPE(volatile u_##TYPE *p, u_##TYPE v)
#if defined(__GNUC__)
-#if defined(I386_CPU)
+#if defined(I386_CPU) || defined(CPU_DISABLE_CMPXCHG)
static __inline int
atomic_cmpset_int(volatile u_int *dst, u_int exp, u_int src)
OpenPOWER on IntegriCloud