bugfix in V86 hypervisor

git-svn-id: svn://kolibrios.org@971 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2008-12-17 13:58:59 +00:00
parent a483e0ffe6
commit 638b68c7e2

View File

@ -479,14 +479,18 @@ v86_exc_c:
@@: @@:
sub word [esp+4+v86_regs.esp], 6 sub word [esp+4+v86_regs.esp], 6
mov eax, [esp+4+v86_regs.eip] mov eax, [esp+4+v86_regs.eip]
cmp byte [esp+1], 0
jnz @f
inc eax inc eax
inc eax inc eax
@@:
mov word [edx], ax mov word [edx], ax
mov eax, [esp+4+v86_regs.cs] mov eax, [esp+4+v86_regs.cs]
mov word [edx+2], ax mov word [edx+2], ax
mov eax, [esp+4+v86_regs.eflags] mov eax, [esp+4+v86_regs.eflags]
mov word [edx+4], ax mov word [edx+4], ax
pop eax pop eax
mov ah, 0
mov cx, [eax*4] mov cx, [eax*4]
mov word [esp+v86_regs.eip], cx mov word [esp+v86_regs.eip], cx
mov cx, [eax*4+2] mov cx, [eax*4+2]
@ -876,6 +880,7 @@ v86_irq2:
jnz .notcurrent jnz .notcurrent
lea eax, [edi+8] lea eax, [edi+8]
cmp al, 10h cmp al, 10h
mov ah, 1
jb @f jb @f
add al, 60h add al, 60h
@@: @@: