1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * Modified 1998-2001, 2003
4 * David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co
6 * Unfortunately, this file is being included by bits/signal.h in
7 * glibc-2.x. Hence the #ifdef __KERNEL__ ugliness.
9 #ifndef _UAPI_ASM_IA64_SIGNAL_H
10 #define _UAPI_ASM_IA64_SIGNAL_H
49 /* signal 31 is no longer "unused", but the SIGUNUSED macro remains for backwards compatibility */
52 /* These should not be considered constants from userland. */
54 #define SIGRTMAX _NSIG
56 #define SA_RESTORER 0x04000000
59 * The minimum stack size needs to be fairly large because we want to
60 * be sure that an app compiled for today's CPUs will continue to run
61 * on all future CPU models. The CPU model matters because the signal
62 * frame needs to have space for the complete machine state, including
63 * all physical stacked registers. The number of physical stacked
64 * registers is CPU model dependent, but given that the width of
65 * ar.rsc.loadrs is 14 bits, we can assume that they'll never take up
66 * more than 16KB of space.
70 * This is a stupid typo: the value was _meant_ to be 131072 (0x20000), but I typed it
71 * in wrong. ;-( To preserve backwards compatibility, we leave the kernel at the
72 * incorrect value and fix libc only.
74 # define MINSIGSTKSZ 131027 /* min. stack size for sigaltstack() */
76 # define MINSIGSTKSZ 131072 /* min. stack size for sigaltstack() */
78 #define SIGSTKSZ 262144 /* default stack size for sigaltstack() */
81 #include <asm-generic/signal-defs.h>
85 # include <linux/types.h>
87 /* Avoid too many header ordering problems. */
90 typedef struct sigaltstack
{
97 # endif /* !__ASSEMBLY__ */
98 #endif /* _UAPI_ASM_IA64_SIGNAL_H */