diff options
author | mjacob <mjacob@FreeBSD.org> | 2007-06-09 18:09:37 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2007-06-09 18:09:37 +0000 |
commit | 35719cd36d18abec5f4a2477062825a4a0fe6ead (patch) | |
tree | 4f950ad88970cbf494601adac12d4ce2ad94e0db /sys | |
parent | 01595fc7b29146940f470ccd08f8a1cc63cda924 (diff) | |
download | FreeBSD-src-35719cd36d18abec5f4a2477062825a4a0fe6ead.zip FreeBSD-src-35719cd36d18abec5f4a2477062825a4a0fe6ead.tar.gz |
Propagate volatile qualifier to make gcc4.2 happy.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_mutex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 2937ce7..a36a2ed 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -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(); } |