]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] vm86: Honor TF bit when emulating an instruction
authorPetr Tesarik <kernel@tesarici.cz>
Sat, 3 Sep 2005 22:56:28 +0000 (15:56 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:06:09 +0000 (00:06 -0700)
commita1ca7646825e6bef90d804541d56a94aa94128d6
tree9597e94f20ba1fa317cc05c450e43c8fe80f39ea
parente0b62a0803371458ab80f2d5ade03a0bbe21d23e
[PATCH] vm86: Honor TF bit when emulating an instruction

If the virtual 86 machine reaches an instruction which raises a General
Protection Fault (such as CLI or STI), the instruction is emulated (in
handle_vm86_fault).  However, the emulation ignored the TF bit, so the
hardware debug interrupt was not invoked after such an emulated instruction
(and the DOS debugger missed it).

This patch fixes the problem by emulating the hardware debug interrupt as
the last action before control is returned to the VM86 program.

Signed-off-by: Petr Tesarik <kernel@tesarici.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/vm86.c