提交 85139422 编写于 作者: H H. Peter Anvin

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: NH. Peter Anvin <hpa@zytor.com>
上级 f28f0c23
...@@ -16,4 +16,9 @@ ...@@ -16,4 +16,9 @@
void signal_fault(struct pt_regs *regs, void __user *frame, char *where); 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 */ #endif /* _ASM_X86_SIGHANDLING_H */
...@@ -60,9 +60,8 @@ ...@@ -60,9 +60,8 @@
regs->seg = GET_SEG(seg) | 3; \ regs->seg = GET_SEG(seg) | 3; \
} while (0) } while (0)
static int int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, unsigned long *pax)
unsigned long *pax)
{ {
void __user *buf; void __user *buf;
unsigned int tmpflags; unsigned int tmpflags;
...@@ -117,9 +116,8 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, ...@@ -117,9 +116,8 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
return err; return err;
} }
static int int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate, struct pt_regs *regs, unsigned long mask)
struct pt_regs *regs, unsigned long mask)
{ {
int err = 0; int err = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册