blob: e87954703ae2ce946e379512e76a4cda9b0bb3a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_X86_FUTEX_ROBUST_H
#define _ASM_X86_FUTEX_ROBUST_H
#include <asm/ptrace.h>
static __always_inline void __user *x86_futex_robust_unlock_get_pop(struct pt_regs *regs)
{
/*
* If ZF is set then the cmpxchg succeeded and the pending op pointer
* needs to be cleared.
*/
return regs->flags & X86_EFLAGS_ZF ? (void __user *)regs->dx : NULL;
}
#define arch_futex_robust_unlock_get_pop(regs) \
x86_futex_robust_unlock_get_pop(regs)
#endif /* _ASM_X86_FUTEX_ROBUST_H */
|