* [patch] vm86: set IOPL to 3 on pushf
@ 2004-07-01 19:27 Stas Sergeev
0 siblings, 0 replies; only message in thread
From: Stas Sergeev @ 2004-07-01 19:27 UTC (permalink / raw)
To: linux-kernel; +Cc: Andrew Morton
[-- Attachment #1: Type: text/plain, Size: 285 bytes --]
Hi.
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/81
Andrew, could you please apply this to 2.6?
[-- Attachment #2: vm86.c.diff --]
[-- Type: text/x-patch, Size: 296 bytes --]
--- linux/arch/i386/kernel/vm86.c.orig 2004-06-26 15:23:51.000000000 +0400
+++ linux/arch/i386/kernel/vm86.c 2004-07-01 21:57:36.687819904 +0400
@@ -394,6 +394,7 @@
if (VEFLAGS & VIF_MASK)
flags |= IF_MASK;
+ flags |= IOPL_MASK;
return flags | (VEFLAGS & current->thread.v86mask);
}
[-- Attachment #3: Type: text/plain, Size: 82 bytes --]
Scanned by evaluation version of Dr.Web antivirus Daemon
http://drweb.ru/unix/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-01 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-01 19:27 [patch] vm86: set IOPL to 3 on pushf Stas Sergeev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox