Commit cc4d29de authored by Stas Sergeev's avatar Stas Sergeev Committed by Linus Torvalds

[PATCH] vm86: set IOPL to 3 on pushf

The attached patch fixes the pushf under v86 to always set the IOPL field
to 3, as the Intel CPUs do.

It was in 2.4 for year, but somehow missed 2.6.  It comes from here
(although now a bit shorter):

http://lkml.org/lkml/2003/5/25/81Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 11f4535e
......@@ -394,6 +394,7 @@ static inline unsigned long get_vflags(struct kernel_vm86_regs * regs)
if (VEFLAGS & VIF_MASK)
flags |= IF_MASK;
flags |= IOPL_MASK;
return flags | (VEFLAGS & current->thread.v86mask);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment