MIPS: compat: Implement is_compat_task() by testing for 32-bit address space.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 8 Nov 2012 22:59:31 +0000 (23:59 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 9 Nov 2012 09:58:29 +0000 (10:58 +0100)
commit6ad560b4546af6943820f780610e544aaae218c0
tree6446cb3e8f5f93aa54845b8da963793a69309d1b
parent4870639a754991a52fc8f4ba82f0d9c247c33659
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>
arch/mips/include/asm/compat.h