Fix build.

This commit is contained in:
Xin LI 2014-10-25 00:16:36 +00:00
parent 1284501329
commit 6362e06b42
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=273616

View File

@ -2895,7 +2895,7 @@ do_sem2_wake(struct thread *td, struct _usem2 *sem)
*/
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);