summaryrefslogtreecommitdiffstats
path: root/include/asm-parisc/compat.h
diff options
context:
space:
mode:
authorKyle McMartin <kyle@parisc-linux.org>2006-08-27 17:04:26 +0200
committerMatthew Wilcox <willy@parisc-linux.org>2006-10-04 14:46:42 +0200
commitdf570b9c284701d08b22aa00cbfcf870b7f1b7c1 (patch)
tree4e3478a7c370dd595cd44d6ab79abfb94e93801b /include/asm-parisc/compat.h
parent[PARISC] Prevent multiple includes of asm-parisc/parisc-device.h (diff)
downloadlinux-df570b9c284701d08b22aa00cbfcf870b7f1b7c1.tar.xz
linux-df570b9c284701d08b22aa00cbfcf870b7f1b7c1.zip
[PARISC] Switch is_compat_task to use TIF_32BIT
Stop using PER_LINUX32 to designate processes needing compaterizing. Convert is_compat_task to use TIF_32BIT and set TIF_32BIT in binfmt_elf32.c Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Diffstat (limited to 'include/asm-parisc/compat.h')
-rw-r--r--include/asm-parisc/compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-parisc/compat.h b/include/asm-parisc/compat.h
index 71b4eeea205a..fe8579023531 100644
--- a/include/asm-parisc/compat.h
+++ b/include/asm-parisc/compat.h
@@ -5,7 +5,7 @@
*/
#include <linux/types.h>
#include <linux/sched.h>
-#include <linux/personality.h>
+#include <linux/thread_info.h>
#define COMPAT_USER_HZ 100
@@ -152,7 +152,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(t->thread_info, TIF_32BIT);
}
static inline int is_compat_task(void)