Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/include we don't really have 64 bit atomic ops.



details:   https://anonhg.NetBSD.org/src/rev/4176ff83d23d
branches:  trunk
changeset: 795643:4176ff83d23d
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 22 14:09:19 2014 +0000

description:
we don't really have 64 bit atomic ops.

diffstat:

 sys/arch/i386/include/types.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r d800b3175daa -r 4176ff83d23d sys/arch/i386/include/types.h
--- a/sys/arch/i386/include/types.h     Tue Apr 22 14:07:31 2014 +0000
+++ b/sys/arch/i386/include/types.h     Tue Apr 22 14:09:19 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: types.h,v 1.77 2014/04/03 15:22:19 christos Exp $      */
+/*     $NetBSD: types.h,v 1.78 2014/04/22 14:09:19 christos Exp $      */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -109,7 +109,13 @@
 #define        __HAVE_SYSCALL_INTERN
 #define        __HAVE_MINIMAL_EMUL
 #define        __HAVE_OLD_DISKLABEL
+#if 0
+/*
+ * < i586 does not have cmpxchg8b, and we compile for i486 by default.
+ * Atomic64 ops are not currently used in the kernel.
+ */
 #define __HAVE_ATOMIC64_OPS
+#endif
 #define        __HAVE_ATOMIC_AS_MEMBAR
 #define        __HAVE_CPU_LWP_SETPRIVATE
 #define        __HAVE_INTR_CONTROL



Home | Main Index | Thread Index | Old Index