]> err.no Git - linux-2.6/commitdiff
[PATCH] x86_64: Make sure is_compat_task works early
authorAndi Kleen <ak@suse.de>
Mon, 26 Jun 2006 11:57:19 +0000 (13:57 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 17:48:17 +0000 (10:48 -0700)
Previously it would only work in the first 32bit system call, not during
early process setup.

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/x86_64/kernel/process.c

index 52c03f6c773100b0d2138773cf77ffd5c3253ae1..dcb77b462348f824a7536b6ec0f681b35265c5b5 100644 (file)
@@ -364,8 +364,11 @@ void flush_thread(void)
        struct task_struct *tsk = current;
        struct thread_info *t = current_thread_info();
 
-       if (t->flags & _TIF_ABI_PENDING)
+       if (t->flags & _TIF_ABI_PENDING) {
                t->flags ^= (_TIF_ABI_PENDING | _TIF_IA32);
+               if (t->flags & _TIF_IA32)
+                       current_thread_info()->status |= TS_COMPAT;
+       }
 
        tsk->thread.debugreg0 = 0;
        tsk->thread.debugreg1 = 0;