Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/dtrace add a stub for arm
details: https://anonhg.NetBSD.org/src/rev/e15664d06477
branches: trunk
changeset: 786086:e15664d06477
user: christos <christos%NetBSD.org@localhost>
date: Sun Apr 14 16:39:59 2013 +0000
description:
add a stub for arm
diffstat:
external/cddl/osnet/dev/dtrace/dtrace_debug.c | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diffs (28 lines):
diff -r e99888ffcb90 -r e15664d06477 external/cddl/osnet/dev/dtrace/dtrace_debug.c
--- a/external/cddl/osnet/dev/dtrace/dtrace_debug.c Sun Apr 14 16:37:32 2013 +0000
+++ b/external/cddl/osnet/dev/dtrace/dtrace_debug.c Sun Apr 14 16:39:59 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dtrace_debug.c,v 1.5 2012/06/16 17:31:47 chs Exp $ */
+/* $NetBSD: dtrace_debug.c,v 1.6 2013/04/14 16:39:59 christos Exp $ */
/*-
* Copyright (C) 2008 John Birrell <jb%freebsd.org@localhost>.
@@ -78,6 +78,18 @@
return (res);
}
+#elif defined(__arm__)
+static __inline int
+dtrace_cmpset_long(volatile u_long *dst, u_long exp, u_long src)
+{
+ u_char res;
+ if (*dst == src) {
+ res = *dst;
+ *dst = src;
+ return res;
+ }
+ return exp;
+}
#endif
#define DTRACE_DEBUG_BUFR_SIZE (32 * 1024)
Home |
Main Index |
Thread Index |
Old Index