diff options
author | pirzyk <pirzyk@FreeBSD.org> | 2002-10-14 19:33:12 +0000 |
---|---|---|
committer | pirzyk <pirzyk@FreeBSD.org> | 2002-10-14 19:33:12 +0000 |
commit | 0bdb757b1abd0d2ef8428f0dbf05e27ee319f61c (patch) | |
tree | a151a94dfb202dce8ca1978e867a6aa99ae43fc1 /sys/amd64 | |
parent | e74d131cbcc61445492e898f49fb7706185e5616 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/amd64/include/atomic.h | 2 |
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) |