Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Mar 2005 22:57:09 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 74136 for review
Message-ID:  <200503302257.j2UMv9tF073790@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=74136

Change 74136 by jhb@jhb_twclab on 2005/03/30 22:56:52

	Compile.

Affected files ...

.. //depot/projects/smpng/sys/alpha/include/atomic.h#18 edit

Differences ...

==== //depot/projects/smpng/sys/alpha/include/atomic.h#18 (text+ko) ====

@@ -245,11 +245,11 @@
 /*
  * We assume that a = b will do atomic loads and stores.
  */
-#define ATOMIC_STORE_LOAD(TYPE, WIDTH)			\
-static __inline u_##TYPE				\
-atomic_load_acq_##WIDTH(volatile u_##TYPE *p)		\
+#define ATOMIC_STORE_LOAD(WIDTH)			\
+static __inline u_int##WIDTH##_t			\
+atomic_load_acq_##WIDTH(volatile u_int##WIDTH##_t *p)	\
 {							\
-	u_##TYPE v;					\
+	u_int##WIDTH##_t v;				\
 							\
 	v = *p;						\
 	alpha_mb();					\
@@ -258,7 +258,7 @@
 }							\
 							\
 static __inline void					\
-atomic_store_rel_##WIDTH(volatile u_##TYPE *p, u_##TYPE v)\
+atomic_store_rel_##WIDTH(volatile u_int##WIDTH##_t *p, u_int##WIDTH##_t v)\
 {							\
 	alpha_wmb();					\
 	*p = v;						\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503302257.j2UMv9tF073790>