#ifndef _ASM_X86_SIGNAL_H
#define _ASM_X86_SIGNAL_H
#ifndef __ASSEMBLY__
#include <linux/linkage.h>
#define _NSIG …
#ifdef __i386__
#define _NSIG_BPW …
#else
#define _NSIG_BPW …
#endif
#define _NSIG_WORDS …
old_sigset_t;
sigset_t;
#define SA_IA32_ABI …
#define SA_X32_ABI …
#endif
#include <uapi/asm/signal.h>
#ifndef __ASSEMBLY__
#define __ARCH_HAS_SA_RESTORER
#include <asm/asm.h>
#include <uapi/asm/sigcontext.h>
#ifdef __i386__
#define __HAVE_ARCH_SIG_BITOPS
#define sigaddset …
static inline void __gen_sigaddset(sigset_t *set, int _sig)
{
asm("btsl %1,%0" : "+m"(*set) : "Ir"(_sig - 1) : "cc");
}
static inline void __const_sigaddset(sigset_t *set, int _sig)
{
unsigned long sig = _sig - 1;
set->sig[sig / _NSIG_BPW] |= 1 << (sig % _NSIG_BPW);
}
#define sigdelset …
static inline void __gen_sigdelset(sigset_t *set, int _sig)
{
asm("btrl %1,%0" : "+m"(*set) : "Ir"(_sig - 1) : "cc");
}
static inline void __const_sigdelset(sigset_t *set, int _sig)
{
unsigned long sig = _sig - 1;
set->sig[sig / _NSIG_BPW] &= ~(1 << (sig % _NSIG_BPW));
}
static inline int __const_sigismember(sigset_t *set, int _sig)
{
unsigned long sig = _sig - 1;
return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW));
}
static inline int __gen_sigismember(sigset_t *set, int _sig)
{
bool ret;
asm("btl %2,%1" CC_SET(c)
: CC_OUT(c) (ret) : "m"(*set), "Ir"(_sig-1));
return ret;
}
#define sigismember …
struct pt_regs;
#else
#undef __HAVE_ARCH_SIG_BITOPS
#endif
#endif
#endif