diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-02-23 05:57:09 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2004-02-23 05:57:09 +0000 |
commit | 368d580ada242c6c62b6d5bdb01046d5621eef12 (patch) | |
tree | 321405cd4bdae2c151d6fa68aba086c4a78c9dc9 /sys | |
parent | 0e1d1d4b080f92e81c804ca302a3be4b20cd3809 (diff) |
add a comment on set/clr 64bit ops
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)); |