Module Name: src
Committed By: martin
Date: Thu Aug 14 09:02:18 UTC 2014
Modified Files:
src/sys/arch/vax/include: mutex.h
Log Message:
Previously we used unsigned long int as __uintptr_t, but gcc prefers
__UINTPTR_TYPE__ as unsigned int, and now we use that for __uintptr_t
as well, so adapt MUTEX_CAS() accordingly.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/vax/include/mutex.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/vax/include/mutex.h
diff -u src/sys/arch/vax/include/mutex.h:1.12 src/sys/arch/vax/include/mutex.h:1.13
--- src/sys/arch/vax/include/mutex.h:1.12 Mon Apr 28 20:23:39 2008
+++ src/sys/arch/vax/include/mutex.h Thu Aug 14 09:02:18 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: mutex.h,v 1.12 2008/04/28 20:23:39 martin Exp $ */
+/* $NetBSD: mutex.h,v 1.13 2014/08/14 09:02:18 martin Exp $ */
/*-
* Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -82,7 +82,7 @@ struct kmutex {
*/
#define MUTEX_GIVE(mtx) /* nothing */
-#define MUTEX_CAS(p, o, n) (atomic_cas_ulong((p), (o), (n)) == (o))
+#define MUTEX_CAS(p, o, n) (atomic_cas_uint((p), (o), (n)) == (o))
#endif /* __MUTEX_PRIVATE */