diff options
author | davidxu <davidxu@FreeBSD.org> | 2012-03-30 09:03:53 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2012-03-30 09:03:53 +0000 |
commit | febc18f31b0431e3f92f2dda5656f0f03734619a (patch) | |
tree | 8d311ef464b6f679b3e7418c88e4747f23bcfe39 /sys/kern/kern_umtx.c | |
parent | e01941a391b65e5087907f89ac8ff4fafd520c31 (diff) | |
download | FreeBSD-src-febc18f31b0431e3f92f2dda5656f0f03734619a.zip FreeBSD-src-febc18f31b0431e3f92f2dda5656f0f03734619a.tar.gz |
Fix COMPAT_FREEBSD32 build.
Submitted by: Andreas Tobler < andreast at fgznet dot ch >
Diffstat (limited to 'sys/kern/kern_umtx.c')
-rw-r--r-- | sys/kern/kern_umtx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c index b9de12b..47744d9 100644 --- a/sys/kern/kern_umtx.c +++ b/sys/kern/kern_umtx.c @@ -957,7 +957,7 @@ do_lock_umtx32(struct thread *td, uint32_t *m, uint32_t id, umtxq_lock(&uq->uq_key); if (old == owner) error = umtxq_sleep(uq, "umtx", timeout == NULL ? - NULL : timo); + NULL : &timo); umtxq_remove(uq); umtxq_unlock(&uq->uq_key); umtx_key_release(&uq->uq_key); @@ -3372,7 +3372,7 @@ __umtx_op_rw_rdlock_compat32(struct thread *td, struct _umtx_op_args *uap) (size_t)uap->uaddr1, &timeout); if (error != 0) return (error); - error = do_rw_rdlock2(td, uap->obj, uap->val, &timeout); + error = do_rw_rdlock(td, uap->obj, uap->val, &timeout); } return (error); } @@ -3391,7 +3391,7 @@ __umtx_op_rw_wrlock_compat32(struct thread *td, struct _umtx_op_args *uap) (size_t)uap->uaddr1, &timeout); if (error != 0) return (error); - error = do_rw_wrlock2(td, uap->obj, &timeout); + error = do_rw_wrlock(td, uap->obj, &timeout); } return (error); } |