public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] vm86: Clear AC on INT
@ 2002-07-28 16:21 Stas Sergeev
  2002-08-01 12:19 ` Kasper Dupont
  2002-08-01 13:43 ` Kasper Dupont
  0 siblings, 2 replies; 15+ messages in thread
From: Stas Sergeev @ 2002-07-28 16:21 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

Hello.

According to this:
http://support.intel.com/design/intarch/techinfo/Pentium/instrefi.htm#89126
AC flag is cleared by an INT
instruction executed in real mode.
The attached patch implements that
functionality and solves some
problems recently discussed in
dosemu mailing list.

[-- Attachment #2: vm86_ac.diff --]
[-- Type: text/plain, Size: 550 bytes --]

--- linux/arch/i386/kernel/vm86.c	Sat Jul 27 13:12:38 2002
+++ linux/arch/i386/kernel/vm86.c	Sat Jul 27 23:56:27 2002
@@ -317,6 +317,11 @@
 	regs->eflags &= ~TF_MASK;
 }
 
+static inline void clear_AC(struct kernel_vm86_regs * regs)
+{
+	regs->eflags &= ~AC_MASK;
+}
+
 /* It is correct to call set_IF(regs) from the set_vflags_*
  * functions. However someone forgot to call clear_IF(regs)
  * in the opposite case.
@@ -471,6 +476,7 @@
 	IP(regs) = segoffs & 0xffff;
 	clear_TF(regs);
 	clear_IF(regs);
+	clear_AC(regs);
 	return;
 
 cannot_handle:

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2002-08-01 17:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-28 16:21 [patch] vm86: Clear AC on INT Stas Sergeev
2002-08-01 12:19 ` Kasper Dupont
2002-08-01 13:43 ` Kasper Dupont
2002-08-01 15:15   ` Richard B. Johnson
2002-08-01 15:49     ` Kasper Dupont
2002-08-01 16:52     ` Alan Cox
2002-08-01 15:55       ` Kasper Dupont
2002-08-01 17:28         ` Alan Cox
2002-08-01 16:21           ` Kasper Dupont
2002-08-01 16:40             ` Maciej W. Rozycki
2002-08-01 17:04               ` Kasper Dupont
2002-08-01 17:38                 ` Richard B. Johnson
2002-08-01 17:48                   ` Kasper Dupont
2002-08-01 17:47             ` Alan Cox
2002-08-01 16:33   ` Maciej W. Rozycki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox