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