Skip to content

Commit

Permalink
[PATCH] x86_64: Make sure is_compat_task works early
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jun 26, 2006
1 parent 26a3c49 commit 4d9bc79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion arch/x86_64/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4d9bc79

Please sign in to comment.