mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use correct type in __DEVOLATILE().
This commit is contained in:
parent
613a9773e5
commit
1bc9ea1caa
1 changed files with 2 additions and 1 deletions
|
|
@ -2895,7 +2895,8 @@ do_sem2_wake(struct thread *td, struct _usem2 *sem)
|
|||
*/
|
||||
if (cnt == 1) {
|
||||
umtxq_unlock(&key);
|
||||
count = fuword32(__DEVOLATILE(void *, &sem->_count));
|
||||
count = fuword32(__DEVOLATILE(uint32_t *,
|
||||
&sem->_count));
|
||||
while (count != -1 && count & USEM_HAS_WAITERS)
|
||||
count = casuword32(&sem->_count, count,
|
||||
count & ~USEM_HAS_WAITERS);
|
||||
|
|
|
|||
Loading…
Reference in a new issue