svn commit: r334297 - head/sys/arm64/include

Emmanuel Vadot manu at FreeBSD.org
Mon May 28 21:05:02 UTC 2018


Author: manu
Date: Mon May 28 21:05:00 2018
New Revision: 334297
URL: https://svnweb.freebsd.org/changeset/base/334297

Log:
  arm64: fix atomic_fcmpset_16
  
  newval needs to be uint16_t
  
  Reported by:	andrew

Modified:
  head/sys/arm64/include/atomic.h

Modified: head/sys/arm64/include/atomic.h
==============================================================================
--- head/sys/arm64/include/atomic.h	Mon May 28 20:47:39 2018	(r334296)
+++ head/sys/arm64/include/atomic.h	Mon May 28 21:05:00 2018	(r334297)
@@ -127,7 +127,7 @@ atomic_fcmpset_##bar##8(volatile uint8_t *p, uint8_t *
 									\
 static __inline int							\
 atomic_fcmpset_##bar##16(volatile uint16_t *p, uint16_t *cmpval,	\
-    uint8_t newval)		 					\
+    uint16_t newval)		 					\
 {									\
 	uint16_t tmp;							\
 	uint16_t _cmpval = *cmpval;					\


More information about the svn-src-all mailing list