diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/include/asm/sighandling.h | 5 | ||||
-rw-r--r-- | arch/x86/kernel/signal.c | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/arch/x86/include/asm/sighandling.h b/arch/x86/include/asm/sighandling.h index 843e299e120e..ada93b3b8c66 100644 --- a/arch/x86/include/asm/sighandling.h +++ b/arch/x86/include/asm/sighandling.h | |||
@@ -16,4 +16,9 @@ | |||
16 | 16 | ||
17 | void signal_fault(struct pt_regs *regs, void __user *frame, char *where); | 17 | void signal_fault(struct pt_regs *regs, void __user *frame, char *where); |
18 | 18 | ||
19 | int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, | ||
20 | unsigned long *pax); | ||
21 | int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, | ||
22 | struct pt_regs *regs, unsigned long mask); | ||
23 | |||
19 | #endif /* _ASM_X86_SIGHANDLING_H */ | 24 | #endif /* _ASM_X86_SIGHANDLING_H */ |
diff --git a/arch/x86/kernel/signal.c b/arch/x86/kernel/signal.c index c432dc0e65f0..450fb255f877 100644 --- a/arch/x86/kernel/signal.c +++ b/arch/x86/kernel/signal.c | |||
@@ -60,9 +60,8 @@ | |||
60 | regs->seg = GET_SEG(seg) | 3; \ | 60 | regs->seg = GET_SEG(seg) | 3; \ |
61 | } while (0) | 61 | } while (0) |
62 | 62 | ||
63 | static int | 63 | int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, |
64 | restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, | 64 | unsigned long *pax) |
65 | unsigned long *pax) | ||
66 | { | 65 | { |
67 | void __user *buf; | 66 | void __user *buf; |
68 | unsigned int tmpflags; | 67 | unsigned int tmpflags; |
@@ -117,9 +116,8 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, | |||
117 | return err; | 116 | return err; |
118 | } | 117 | } |
119 | 118 | ||
120 | static int | 119 | int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, |
121 | setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, | 120 | struct pt_regs *regs, unsigned long mask) |
122 | struct pt_regs *regs, unsigned long mask) | ||
123 | { | 121 | { |
124 | int err = 0; | 122 | int err = 0; |
125 | 123 | ||