diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/include/atomic.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/atomic.h b/sys/arch/amd64/include/atomic.h index 027415b18c2..f1352049071 100644 --- a/sys/arch/amd64/include/atomic.h +++ b/sys/arch/amd64/include/atomic.h @@ -1,4 +1,4 @@ -/* $OpenBSD: atomic.h,v 1.1 2004/01/28 01:39:39 mickey Exp $ */ +/* $OpenBSD: atomic.h,v 1.2 2004/02/23 05:57:08 mickey Exp $ */ /* $NetBSD: atomic.h,v 1.1 2003/04/26 18:39:37 fvdl Exp $ */ /* @@ -74,7 +74,13 @@ x86_atomic_clearbits_u32(volatile u_int32_t *ptr, u_int32_t bits) { } - +/* + * XXX XXX XXX + * theoretically 64bit cannot be used as + * an "i" and thus if we ever try to give + * these anything from the high dword there + * is an asm error pending + */ static __inline void x86_atomic_setbits_u64(volatile u_int64_t *ptr, u_int64_t bits) { __asm __volatile("lock ; orq %1,%0" : "=m" (*ptr) : "ir" (~bits)); |