]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/powerpc/include/asm/compat.h
powerpc: Use is_32bit_task() helper to test 32-bit binary
[net-next-2.6.git] / arch / powerpc / include / asm / compat.h
index 396d21a800587f0c8a740714a3277a743d2618cc..3369e2c83609a617f9dc8458fcce04a60ee4e392 100644 (file)
@@ -143,7 +143,7 @@ static inline void __user *compat_alloc_user_space(long len)
         * We cant access below the stack pointer in the 32bit ABI and
         * can access 288 bytes in the 64bit ABI
         */
-       if (!(test_thread_flag(TIF_32BIT)))
+       if (!is_32bit_task())
                usp -= 288;
 
        return (void __user *) (usp - len);
@@ -213,7 +213,7 @@ struct compat_shmid64_ds {
 
 static inline int is_compat_task(void)
 {
-       return test_thread_flag(TIF_32BIT);
+       return is_32bit_task();
 }
 
 #endif /* __KERNEL__ */