Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85139422 authored by H. Peter Anvin's avatar H. Peter Anvin
Browse files

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: default avatarH. Peter Anvin <hpa@zytor.com>
parent f28f0c23
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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 */
+4 −6
Original line number Diff line number Diff line
@@ -60,8 +60,7 @@
	regs->seg = GET_SEG(seg) | 3;			\
} while (0)

static int
restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
int restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
		       unsigned long *pax)
{
	void __user *buf;
@@ -117,8 +116,7 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc,
	return err;
}

static int
setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
int setup_sigcontext(struct sigcontext __user *sc, void __user *fpstate,
		     struct pt_regs *regs, unsigned long mask)
{
	int err = 0;