]> git.baikalelectronics.ru Git - kernel.git/commit
x86: save/restore eflags in context switch
authorLinus Torvalds <torvalds@g5.osdl.org>
Mon, 18 Sep 2006 23:20:40 +0000 (16:20 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 18 Sep 2006 23:20:40 +0000 (16:20 -0700)
commit001c1de1b4166b99e130a85045dd49b4544cb751
tree688b6c12c72fed720dc4a047f310cd292e88a6f1
parent860e014747ba7efb93d49a68df20e7292a713b64
x86: save/restore eflags in context switch

(And reset it on new thread creation)

It turns out that eflags is important to save and restore not just
because of iopl, but due to the magic bits like the NT bit, which we
don't want leaking between different threads.

Tested-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/entry.S
include/asm-i386/system.h