Propagate volatile qualifier to make gcc4.2 happy.
This commit is contained in:
parent
f58747375d
commit
65d32cd8fb
@ -530,7 +530,7 @@ thread_lock_unblock(struct thread *td, struct mtx *new)
|
||||
{
|
||||
mtx_assert(new, MA_OWNED);
|
||||
MPASS(td->td_lock == &blocked_lock);
|
||||
atomic_store_rel_ptr((void *)&td->td_lock, (uintptr_t)new);
|
||||
atomic_store_rel_ptr((volatile void *)&td->td_lock, (uintptr_t)new);
|
||||
spinlock_exit();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user