--- zzzz-none-000/linux-3.10.107/arch/mips/include/asm/compat.h 2017-06-27 09:49:32.000000000 +0000 +++ vr9-7490-729/linux-3.10.107/arch/mips/include/asm/compat.h 2021-11-10 11:53:53.000000000 +0000 @@ -298,7 +298,13 @@ static inline int is_compat_task(void) { +#ifdef CONFIG_MIPS32_O32 + return test_thread_flag(TIF_32BIT_REGS); +#elif defined(CONFIG_MIPS32_N32) return test_thread_flag(TIF_32BIT_ADDR); +#else +#error No MIPS32 compatibility mode defined +#endif /* CONFIG_MIPS32_O32 */ } #endif /* _ASM_COMPAT_H */