summaryrefslogtreecommitdiff
path: root/arch/tile/include/asm/signal.h
diff options
context:
space:
mode:
authorChris Metcalf <cmetcalf@tilera.com>2010-09-15 15:16:08 (GMT)
committerChris Metcalf <cmetcalf@tilera.com>2010-09-15 15:16:08 (GMT)
commit74fca9da097b74117ae2cef9e5f0d9b0e28ccbb7 (patch)
treecbdb9e9b760429016a31e1dca3b115548dbebc0a /arch/tile/include/asm/signal.h
parente6e6c46d759cd013cb57eba112a4129a3a353c4b (diff)
downloadlinux-fsl-qoriq-74fca9da097b74117ae2cef9e5f0d9b0e28ccbb7.tar.xz
arch/tile: Change struct sigcontext to be more useful
Rather than just using pt_regs, it now contains the actual saved state explicitly, similar to pt_regs. By doing it this way, we provide a cleaner API for userspace (or equivalently, we avoid the need for libc to provide its own definition of sigcontext). While we're at it, move PT_FLAGS_xxx to where they are not visible from userspace. And always pass siginfo and mcontext to signal handlers, even if they claim they don't need it, since sometimes they actually try to use it anyway in practice. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/include/asm/signal.h')
-rw-r--r--arch/tile/include/asm/signal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/tile/include/asm/signal.h b/arch/tile/include/asm/signal.h
index eb0253f..c1ee1d6 100644
--- a/arch/tile/include/asm/signal.h
+++ b/arch/tile/include/asm/signal.h
@@ -24,6 +24,7 @@
#include <asm-generic/signal.h>
#if defined(__KERNEL__) && !defined(__ASSEMBLY__)
+struct pt_regs;
int restore_sigcontext(struct pt_regs *, struct sigcontext __user *, long *);
int setup_sigcontext(struct sigcontext __user *, struct pt_regs *);
void do_signal(struct pt_regs *regs);