Sam Ravnborg | ece9348 | 2009-01-02 19:21:06 -0800 | [diff] [blame] | 1 | #ifndef __SPARC_SIGNAL_H |
| 2 | #define __SPARC_SIGNAL_H |
| 3 | |
Sam Ravnborg | ece9348 | 2009-01-02 19:21:06 -0800 | [diff] [blame] | 4 | #ifndef __ASSEMBLY__ |
| 5 | #include <linux/personality.h> |
| 6 | #include <linux/types.h> |
| 7 | #endif |
David Howells | 5457982 | 2012-10-09 09:47:43 +0100 | [diff] [blame] | 8 | #include <uapi/asm/signal.h> |
Sam Ravnborg | ece9348 | 2009-01-02 19:21:06 -0800 | [diff] [blame] | 9 | |
| 10 | #ifndef __ASSEMBLY__ |
Sam Ravnborg | ece9348 | 2009-01-02 19:21:06 -0800 | [diff] [blame] | 11 | /* |
| 12 | * DJHR |
| 13 | * SA_STATIC_ALLOC is used for the sparc32 system to indicate that this |
| 14 | * interrupt handler's irq structure should be statically allocated |
| 15 | * by the request_irq routine. |
| 16 | * The alternative is that arch/sparc/kernel/irq.c has carnal knowledge |
| 17 | * of interrupt usage and that sucks. Also without a flag like this |
| 18 | * it may be possible for the free_irq routine to attempt to free |
| 19 | * statically allocated data.. which is NOT GOOD. |
| 20 | * |
| 21 | */ |
| 22 | #define SA_STATIC_ALLOC 0x8000 |
Sam Ravnborg | ece9348 | 2009-01-02 19:21:06 -0800 | [diff] [blame] | 23 | |
| 24 | struct k_sigaction { |
| 25 | struct __new_sigaction sa; |
| 26 | void __user *ka_restorer; |
| 27 | }; |
| 28 | |
Sam Ravnborg | ece9348 | 2009-01-02 19:21:06 -0800 | [diff] [blame] | 29 | #endif /* !(__ASSEMBLY__) */ |
Sam Ravnborg | ece9348 | 2009-01-02 19:21:06 -0800 | [diff] [blame] | 30 | #endif /* !(__SPARC_SIGNAL_H) */ |