2003-05-25 17:23:29

by Stas Sergeev

[permalink] [raw]
Subject: [patch] vm86: fix IOPL virtualisation

--- linux/arch/i386/kernel/vm86.c Sun Aug 4 03:44:30 2002
+++ linux/arch/i386/kernel/vm86.c Sat May 24 19:30:45 2003
@@ -362,6 +362,9 @@

if (VEFLAGS & VIF_MASK)
flags |= IF_MASK;
+ else
+ flags &= ~IF_MASK;
+ flags |= IOPL_MASK;
return flags | (VEFLAGS & current->thread.v86mask);
}


Attachments:
v86_iopl.diff (297.00 B)