x86-64: seccomp: fix 32/64 syscall hole
[safe/jmp/linux-2.6] / arch / powerpc / include / asm / compat.h
index d811a8c..4774c2f 100644 (file)
@@ -210,5 +210,10 @@ struct compat_shmid64_ds {
        compat_ulong_t __unused6;
 };
 
+static inline int is_compat_task(void)
+{
+       return test_thread_flag(TIF_32BIT);
+}
+
 #endif /* __KERNEL__ */
 #endif /* _ASM_POWERPC_COMPAT_H */