]> Pileus Git - ~andy/linux/blobdiff - arch/parisc/include/asm/thread_info.h
Linux 3.14
[~andy/linux] / arch / parisc / include / asm / thread_info.h
index d5f97ea3a4e1ab13a018de4d5d549f90efe4f299..4b9b10ce1f9d09d771beda26c7b48f5eba8ee75a 100644 (file)
@@ -76,6 +76,16 @@ struct thread_info {
 #define _TIF_SYSCALL_TRACE_MASK (_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP |        \
                                 _TIF_BLOCKSTEP | _TIF_SYSCALL_AUDIT)
 
+#ifdef CONFIG_64BIT
+# ifdef CONFIG_COMPAT
+#  define is_32bit_task()      (test_thread_flag(TIF_32BIT))
+# else
+#  define is_32bit_task()      (0)
+# endif
+#else
+# define is_32bit_task()       (1)
+#endif
+
 #endif /* __KERNEL__ */
 
 #endif /* _ASM_PARISC_THREAD_INFO_H */