Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 2014 00:16:36 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273616 - head/sys/kern
Message-ID:  <201410250016.s9P0Gaq4038542@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Sat Oct 25 00:16:36 2014
New Revision: 273616
URL: https://svnweb.freebsd.org/changeset/base/273616

Log:
  Fix build.

Modified:
  head/sys/kern/kern_umtx.c

Modified: head/sys/kern/kern_umtx.c
==============================================================================
--- head/sys/kern/kern_umtx.c	Sat Oct 25 00:14:44 2014	(r273615)
+++ head/sys/kern/kern_umtx.c	Sat Oct 25 00:16:36 2014	(r273616)
@@ -2895,7 +2895,7 @@ do_sem2_wake(struct thread *td, struct _
 		 */
 		if (cnt == 1) {
 			umtxq_unlock(&key);
-			count = fuword32(&sem->_count);
+			count = fuword32(__DEVOLATILE(void *, &sem->_count));
 			while (count != -1 && count & USEM_HAS_WAITERS)
 				count = casuword32(&sem->_count, count,
 				    count & ~USEM_HAS_WAITERS);



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