x32: Export setup/restore_sigcontext from signal.c
authorH. Peter Anvin <hpa@zytor.com>
Sun, 19 Feb 2012 15:43:09 +0000 (07:43 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 20 Feb 2012 20:52:04 +0000 (12:52 -0800)
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>
arch/x86/include/asm/sighandling.h
arch/x86/kernel/signal.c

index 843e299e120e56168f0e102154bb0597a2784921..ada93b3b8c66fb79f5e3a9fe91d9f15d67234edf 100644 (file)
@@ -16,4 +16,9 @@
 
 void signal_fault(struct pt_regs *regs, void __user *frame, char *where);
 
+int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
+                      unsigned long *pax);
+int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
+                    struct pt_regs *regs, unsigned long mask);
+
 #endif /* _ASM_X86_SIGHANDLING_H */
index c432dc0e65f05fec89dd13655f0585b8261d0005..450fb255f8776fa95bfb04c3a3b7f02319cd129b 100644 (file)
@@ -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;
 
This page took 0.027369 seconds and 5 git commands to generate.