diff options
Diffstat (limited to 'arch/mips/kernel/signal.c')
-rw-r--r-- | arch/mips/kernel/signal.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/arch/mips/kernel/signal.c b/arch/mips/kernel/signal.c index 54398af2371f..b2e9ab1bb101 100644 --- a/arch/mips/kernel/signal.c +++ b/arch/mips/kernel/signal.c | |||
@@ -34,10 +34,20 @@ | |||
34 | 34 | ||
35 | #include "signal-common.h" | 35 | #include "signal-common.h" |
36 | 36 | ||
37 | #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP))) | 37 | /* |
38 | 38 | * Horribly complicated - with the bloody RM9000 workarounds enabled | |
39 | * the signal trampolines is moving to the end of the structure so we can | ||
40 | * increase the alignment without breaking software compatibility. | ||
41 | */ | ||
39 | #if ICACHE_REFILLS_WORKAROUND_WAR == 0 | 42 | #if ICACHE_REFILLS_WORKAROUND_WAR == 0 |
40 | 43 | ||
44 | struct sigframe { | ||
45 | u32 sf_ass[4]; /* argument save space for o32 */ | ||
46 | u32 sf_code[2]; /* signal trampoline */ | ||
47 | struct sigcontext sf_sc; | ||
48 | sigset_t sf_mask; | ||
49 | }; | ||
50 | |||
41 | struct rt_sigframe { | 51 | struct rt_sigframe { |
42 | u32 rs_ass[4]; /* argument save space for o32 */ | 52 | u32 rs_ass[4]; /* argument save space for o32 */ |
43 | u32 rs_code[2]; /* signal trampoline */ | 53 | u32 rs_code[2]; /* signal trampoline */ |
@@ -47,6 +57,14 @@ struct rt_sigframe { | |||
47 | 57 | ||
48 | #else | 58 | #else |
49 | 59 | ||
60 | struct sigframe { | ||
61 | u32 sf_ass[4]; /* argument save space for o32 */ | ||
62 | u32 sf_pad[2]; | ||
63 | struct sigcontext sf_sc; /* hw context */ | ||
64 | sigset_t sf_mask; | ||
65 | u32 sf_code[8] ____cacheline_aligned; /* signal trampoline */ | ||
66 | }; | ||
67 | |||
50 | struct rt_sigframe { | 68 | struct rt_sigframe { |
51 | u32 rs_ass[4]; /* argument save space for o32 */ | 69 | u32 rs_ass[4]; /* argument save space for o32 */ |
52 | u32 rs_pad[2]; | 70 | u32 rs_pad[2]; |