Go to the documentation of this file.
4 #include <uapi/asm/signal.h>
11 #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
36 #include <asm/sigcontext.h>
38 #ifndef CONFIG_CPU_HAS_NO_BITFIELDS
39 #define __HAVE_ARCH_SIG_BITOPS
41 static inline void sigaddset(
sigset_t *
set,
int _sig)
43 asm (
"bfset %0{%1,#1}"
45 :
"id" ((_sig - 1) ^ 31)
49 static inline void sigdelset(
sigset_t *
set,
int _sig)
51 asm (
"bfclr %0{%1,#1}"
53 :
"id" ((_sig - 1) ^ 31)
57 static inline int __const_sigismember(
sigset_t *
set,
int _sig)
59 unsigned long sig = _sig - 1;
63 static inline int __gen_sigismember(
sigset_t *
set,
int _sig)
66 asm (
"bfextu %1{%2,#1},%0"
68 :
"o" (*
set),
"id" ((_sig-1) ^ 31)
73 #define sigismember(set,sig) \
74 (__builtin_constant_p(sig) ? \
75 __const_sigismember(set,sig) : \
76 __gen_sigismember(set,sig))
78 static inline int sigfindinword(
unsigned long word)
80 asm (
"bfffo %1{#0,#0},%0"
90 #define ptrace_signal_deliver(regs, cookie) do { } while (0)