Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d9bc79c authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds
Browse files

[PATCH] x86_64: Make sure is_compat_task works early



Previously it would only work in the first 32bit system call, not during
early process setup.

Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 26a3c49c
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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;