Commit 55d646fe authored by Sam Ravnborg's avatar Sam Ravnborg Committed by David S. Miller

sparc64: prepare signal_64 for unification

o add a sparc32 only definition
o fix a few style issues (white space errors etc).
o include compiler.h (for __user)
Signed-off-by: default avatarSam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a0381a94
#ifndef _ASMSPARC64_SIGNAL_H #ifndef __SPARC_SIGNAL_H
#define _ASMSPARC64_SIGNAL_H #define __SPARC_SIGNAL_H
#include <asm/sigcontext.h> #include <asm/sigcontext.h>
#include <linux/compiler.h>
#ifdef __KERNEL__ #ifdef __KERNEL__
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
...@@ -156,6 +157,21 @@ struct sigstack { ...@@ -156,6 +157,21 @@ struct sigstack {
#define MINSIGSTKSZ 4096 #define MINSIGSTKSZ 4096
#define SIGSTKSZ 16384 #define SIGSTKSZ 16384
#ifdef __KERNEL__
/*
* DJHR
* SA_STATIC_ALLOC is used for the sparc32 system to indicate that this
* interrupt handler's irq structure should be statically allocated
* by the request_irq routine.
* The alternative is that arch/sparc/kernel/irq.c has carnal knowledge
* of interrupt usage and that sucks. Also without a flag like this
* it may be possible for the free_irq routine to attempt to free
* statically allocated data.. which is NOT GOOD.
*
*/
#define SA_STATIC_ALLOC 0x8000
#endif
#include <asm-generic/signal.h> #include <asm-generic/signal.h>
struct __new_sigaction { struct __new_sigaction {
...@@ -191,4 +207,4 @@ struct k_sigaction { ...@@ -191,4 +207,4 @@ struct k_sigaction {
#endif /* !(__ASSEMBLY__) */ #endif /* !(__ASSEMBLY__) */
#endif /* !(_ASMSPARC64_SIGNAL_H) */ #endif /* !(__SPARC_SIGNAL_H) */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment