Index: atomic.h =================================================================== RCS file: /home/ncvs/src/sys/i386/include/atomic.h,v retrieving revision 1.17 diff -u -r1.17 atomic.h --- atomic.h 2001/01/14 09:55:21 1.17 +++ atomic.h 2001/01/15 23:27:09 @@ -104,6 +104,9 @@ */ #if defined(I386_CPU) +#if defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU) +#error "Do not use I386_CPU code on other cpu classes!" +#endif static __inline int atomic_cmpset_int(volatile u_int *dst, u_int exp, u_int src) { @@ -267,6 +270,9 @@ * XXX: This is _NOT_ safe on a P6 or higher because it does not guarantee * memory ordering. These should only be used on a 386. */ +#if defined(I486_CPU) || defined(I586_CPU) || defined(I686_CPU) +#error "Do not use I386_CPU code on other cpu classes!" +#endif #define ATOMIC_STORE_LOAD(TYPE, LOP, SOP) \ static __inline u_##TYPE \ atomic_load_acq_##TYPE(volatile u_##TYPE *p) \