diff options
author | H. Peter Anvin <hpa@zytor.com> | 2012-02-19 07:43:09 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2012-02-20 12:52:04 -0800 |
commit | 851394229e79c11b0b5b74c509817848e9a80564 (patch) | |
tree | 0c2ea13f80d1447bf47a13c287ae1bfda45e9f38 /arch/x86/kernel/signal.c | |
parent | f28f0c23576662fb293defe9b1884d5a6e1bd85c (diff) | |
download | linux-stable-851394229e79c11b0b5b74c509817848e9a80564.tar.gz linux-stable-851394229e79c11b0b5b74c509817848e9a80564.tar.bz2 linux-stable-851394229e79c11b0b5b74c509817848e9a80564.zip |
x32: Export setup/restore_sigcontext from signal.c
Export setup_sigcontext() and restore_sigcontext() from signal.c, so
we can use the 64-bit versions verbatim for x32.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/signal.c')
-rw-r--r-- | arch/x86/kernel/signal.c | 10 |
1 files changed, 4 insertions, 6 deletions
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 @@ regs->seg = GET_SEG(seg) | 3; \ } while (0) -static int -restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, - unsigned long *pax) +int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, + unsigned long *pax) { void __user *buf; unsigned int tmpflags; @@ -117,9 +116,8 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, return err; } -static int -setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, - struct pt_regs *regs, unsigned long mask) +int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, + struct pt_regs *regs, unsigned long mask) { int err = 0; |