1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _UAPI_ASM_POWERPC_SIGNAL_H
3 #define _UAPI_ASM_POWERPC_SIGNAL_H
5 #include <linux/types.h>
13 #define _NSIG_WORDS (_NSIG / _NSIG_BPW)
15 typedef unsigned long old_sigset_t; /* at least 32 bits */
18 unsigned long sig[_NSIG_WORDS];
59 /* These should not be considered constants from userland. */
61 #define SIGRTMAX _NSIG
63 #define SA_RESTORER 0x04000000U
66 #define MINSIGSTKSZ 8192
67 #define SIGSTKSZ 32768
69 #define MINSIGSTKSZ 2048
73 #include <asm-generic/signal-defs.h>
76 struct old_sigaction {
77 __sighandler_t sa_handler;
79 unsigned long sa_flags;
80 __sigrestore_t sa_restorer;
84 __sighandler_t sa_handler;
85 unsigned long sa_flags;
86 __sigrestore_t sa_restorer;
87 sigset_t sa_mask; /* mask last for extensibility */
91 typedef struct sigaltstack {
94 __kernel_size_t ss_size;
100 * These are parameters to dbg_sigreturn syscall. They enable or
101 * disable certain debugging things that can be done from signal
102 * handlers. The dbg_sigreturn syscall *must* be called from a
103 * SA_SIGINFO signal so the ucontext can be passed to it. It takes an
104 * array of struct sig_dbg_op, which has the debug operations to
105 * perform before returning from the signal.
109 unsigned long dbg_value;
112 /* Enable or disable single-stepping. The value sets the state. */
113 #define SIG_DBG_SINGLE_STEPPING 1
115 /* Enable or disable branch tracing. The value sets the state. */
116 #define SIG_DBG_BRANCH_TRACING 2
117 #endif /* ! __powerpc64__ */
119 #endif /* _UAPI_ASM_POWERPC_SIGNAL_H */