From 5243e58568c693c892845aca6e25f7b6adc7f094 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 24 Dec 2013 12:23:12 +0000 Subject: [PATCH] ia64: add lll_futex_timed_wait_bitset Signed-off-by: Mike Frysinger --- ports/ChangeLog.ia64 | 5 +++++ ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/ports/ChangeLog.ia64 b/ports/ChangeLog.ia64 index 0338047..c1f2035 100644 --- a/ports/ChangeLog.ia64 +++ b/ports/ChangeLog.ia64 @@ -1,3 +1,8 @@ +2013-12-25 Mike Frysinger + + * sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h + (lll_futex_timed_wait_bitset): Define. + 2013-12-24 Mike Frysinger * sysdeps/unix/sysv/linux/ia64/ioperm.c: Delete code behind #if 0. diff --git a/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h b/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h index cd36f95..90d8d81 100644 --- a/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h +++ b/ports/sysdeps/unix/sysv/linux/ia64/nptl/lowlevellock.h @@ -89,6 +89,17 @@ _r10 == -1 ? -_retval : _retval; \ }) +#define lll_futex_timed_wait_bitset(ftx, val, timespec, clockbit, private) \ +({ \ + int __op = FUTEX_WAIT_BITSET | (clockbit); \ + \ + DO_INLINE_SYSCALL(futex, 4, (long) (ftx), \ + __lll_private_flag (__op, private), \ + (int) (val), (long) (timespec), NULL /* Unused. */, \ + FUTEX_BITSET_MATCH_ANY); \ + _r10 == -1 ? -_retval : _retval; \ +}) + #define lll_futex_wake(ftx, nr, private) \ ({ \ DO_INLINE_SYSCALL(futex, 3, (long) (ftx), \ -- 2.7.4