xref: /openbmc/linux/arch/sparc/include/asm/signal.h (revision 4a075bd4)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __SPARC_SIGNAL_H
3 #define __SPARC_SIGNAL_H
4 
5 #ifndef __ASSEMBLY__
6 #include <linux/personality.h>
7 #include <linux/types.h>
8 #endif
9 #include <uapi/asm/signal.h>
10 
11 #ifndef __ASSEMBLY__
12 /*
13  * DJHR
14  * SA_STATIC_ALLOC is used for the sparc32 system to indicate that this
15  * interrupt handler's irq structure should be statically allocated
16  * by the request_irq routine.
17  * The alternative is that arch/sparc/kernel/irq.c has carnal knowledge
18  * of interrupt usage and that sucks. Also without a flag like this
19  * it may be possible for the free_irq routine to attempt to free
20  * statically allocated data.. which is NOT GOOD.
21  *
22  */
23 #define SA_STATIC_ALLOC         0x8000
24 
25 #define __ARCH_HAS_KA_RESTORER
26 #define __ARCH_HAS_SA_RESTORER
27 
28 #endif /* !(__ASSEMBLY__) */
29 #endif /* !(__SPARC_SIGNAL_H) */
30