Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/include Previously we used unsigned long int as...



details:   https://anonhg.NetBSD.org/src/rev/d9947b57b122
branches:  trunk
changeset: 331548:d9947b57b122
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Aug 14 09:02:18 2014 +0000

description:
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.

diffstat:

 sys/arch/vax/include/mutex.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 227e48e144ee -r d9947b57b122 sys/arch/vax/include/mutex.h
--- a/sys/arch/vax/include/mutex.h      Thu Aug 14 05:42:16 2014 +0000
+++ b/sys/arch/vax/include/mutex.h      Thu Aug 14 09:02:18 2014 +0000
@@ -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 @@
  */
 #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 */
 



Home | Main Index | Thread Index | Old Index