diff options
author | davidxu <davidxu@FreeBSD.org> | 2009-04-13 05:21:17 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2009-04-13 05:21:17 +0000 |
commit | 87940a26861d13b19ddf7a659d97c7fab0215489 (patch) | |
tree | c2be058860e149ed39b9f910020d2474d0c96b7f /sys | |
parent | bb9a54af623385ebe08e4abb6c81ffcfd2165656 (diff) | |
download | FreeBSD-src-87940a26861d13b19ddf7a659d97c7fab0215489.zip FreeBSD-src-87940a26861d13b19ddf7a659d97c7fab0215489.tar.gz |
Make UMTX_OP_WAIT_UINT actually wait for an unsigned integer on 64-bits
machine.
MFC after: 1 week
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_umtx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c index 46e06c0..bcb60ed 100644 --- a/sys/kern/kern_umtx.c +++ b/sys/kern/kern_umtx.c @@ -975,7 +975,7 @@ do_wait(struct thread *td, void *addr, u_long id, if (compat32 == 0) tmp = fuword(addr); else - tmp = fuword32(addr); + tmp = (unsigned int)fuword32(addr); if (tmp != id) { umtxq_lock(&uq->uq_key); umtxq_remove(uq); |