diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2009-06-12 04:26:25 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2009-06-12 04:27:30 -0400 |
commit | 7757591ab4a36314a258e181dbf0994415c288c2 (patch) | |
tree | 99b414c90dbc7889f7738a795122805f167a00af /arch/s390/kernel/signal.c | |
parent | d90cbd469c9c7c1494fc2084af9319e6a557368b (diff) |
[S390] implement is_compat_task
Implement is_compat_task and use it all over the place.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/kernel/signal.c')
-rw-r--r-- | arch/s390/kernel/signal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/kernel/signal.c b/arch/s390/kernel/signal.c index 3cf74c3ccb69..062bd64e65fa 100644 --- a/arch/s390/kernel/signal.c +++ b/arch/s390/kernel/signal.c | |||
@@ -26,6 +26,7 @@ | |||
26 | #include <linux/binfmts.h> | 26 | #include <linux/binfmts.h> |
27 | #include <linux/tracehook.h> | 27 | #include <linux/tracehook.h> |
28 | #include <linux/syscalls.h> | 28 | #include <linux/syscalls.h> |
29 | #include <linux/compat.h> | ||
29 | #include <asm/ucontext.h> | 30 | #include <asm/ucontext.h> |
30 | #include <asm/uaccess.h> | 31 | #include <asm/uaccess.h> |
31 | #include <asm/lowcore.h> | 32 | #include <asm/lowcore.h> |
@@ -482,7 +483,7 @@ void do_signal(struct pt_regs *regs) | |||
482 | /* Whee! Actually deliver the signal. */ | 483 | /* Whee! Actually deliver the signal. */ |
483 | int ret; | 484 | int ret; |
484 | #ifdef CONFIG_COMPAT | 485 | #ifdef CONFIG_COMPAT |
485 | if (test_thread_flag(TIF_31BIT)) { | 486 | if (is_compat_task()) { |
486 | ret = handle_signal32(signr, &ka, &info, oldset, regs); | 487 | ret = handle_signal32(signr, &ka, &info, oldset, regs); |
487 | } | 488 | } |
488 | else | 489 | else |