X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-parisc%2Fcompat.h;h=5a85d1b025c810de6e881931ce0ae3a38574216c;hb=eba0e319c12fb098d66316a8eafbaaa9174a07c3;hp=71b4eeea205a1a85eda581179fd97b46eeee0e83;hpb=602cada851b28c5792339786efe872fbdc1f5d41;p=powerpc.git diff --git a/include/asm-parisc/compat.h b/include/asm-parisc/compat.h index 71b4eeea20..5a85d1b025 100644 --- a/include/asm-parisc/compat.h +++ b/include/asm-parisc/compat.h @@ -5,7 +5,7 @@ */ #include #include -#include +#include #define COMPAT_USER_HZ 100 @@ -31,8 +31,10 @@ typedef s32 compat_timer_t; typedef s32 compat_int_t; typedef s32 compat_long_t; +typedef s64 compat_s64; typedef u32 compat_uint_t; typedef u32 compat_ulong_t; +typedef u64 compat_u64; struct compat_timespec { compat_time_t tv_sec; @@ -152,7 +154,7 @@ static __inline__ void __user *compat_alloc_user_space(long len) static inline int __is_compat_task(struct task_struct *t) { - return personality(t->personality) == PER_LINUX32; + return test_ti_thread_flag(task_thread_info(t), TIF_32BIT); } static inline int is_compat_task(void)