From: Stas Sergeev <stsp@aknet.ru>
To: linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@osdl.org>
Subject: [patch] vm86: set IOPL to 3 on pushf
Date: Thu, 01 Jul 2004 23:27:23 +0400 [thread overview]
Message-ID: <40E4659B.5050003@aknet.ru> (raw)
[-- 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/
reply other threads:[~2004-07-01 19:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40E4659B.5050003@aknet.ru \
--to=stsp@aknet.ru \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox