From 638b68c7e281d7a5ccd6cb68bae4ae4fc18362f3 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Wed, 17 Dec 2008 13:58:59 +0000 Subject: [PATCH] bugfix in V86 hypervisor git-svn-id: svn://kolibrios.org@971 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/core/v86.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kernel/trunk/core/v86.inc b/kernel/trunk/core/v86.inc index 9b3c9fb409..14a98b45cb 100644 --- a/kernel/trunk/core/v86.inc +++ b/kernel/trunk/core/v86.inc @@ -479,14 +479,18 @@ v86_exc_c: @@: sub word [esp+4+v86_regs.esp], 6 mov eax, [esp+4+v86_regs.eip] + cmp byte [esp+1], 0 + jnz @f inc eax inc eax +@@: mov word [edx], ax mov eax, [esp+4+v86_regs.cs] mov word [edx+2], ax mov eax, [esp+4+v86_regs.eflags] mov word [edx+4], ax pop eax + mov ah, 0 mov cx, [eax*4] mov word [esp+v86_regs.eip], cx mov cx, [eax*4+2] @@ -876,6 +880,7 @@ v86_irq2: jnz .notcurrent lea eax, [edi+8] cmp al, 10h + mov ah, 1 jb @f add al, 60h @@: