diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-11-08 23:59:31 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-11-09 10:58:29 +0100 |
commit | 6ad560b4546af6943820f780610e544aaae218c0 (patch) | |
tree | 6446cb3e8f5f93aa54845b8da963793a69309d1b /arch | |
parent | 4870639a754991a52fc8f4ba82f0d9c247c33659 (diff) | |
download | linux-6ad560b4546af6943820f780610e544aaae218c0.tar.bz2 |
MIPS: compat: Implement is_compat_task() by testing for 32-bit address space.
So far is_compat_task() was testing for 32-bit registers if O32 support
was enabled and if O32 support was disabled but N32 enabled it was testing
for 32-bit address space. So if both O32 and N32 were enabled a N32
task was not considered a compat task, whops.
This still leaves potential cases where O32 and N32 need different treatment
unsolved. But that's another commit.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/include/asm/compat.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/include/asm/compat.h b/arch/mips/include/asm/compat.h index 58277e0e9cd4..3c5d1464b7bd 100644 --- a/arch/mips/include/asm/compat.h +++ b/arch/mips/include/asm/compat.h @@ -290,7 +290,7 @@ struct compat_shmid64_ds { static inline int is_compat_task(void) { - return test_thread_flag(TIF_32BIT); + return test_thread_flag(TIF_32BIT_ADDR); } #endif /* _ASM_COMPAT_H */ |