Subversion Repositories Kolibri OS

Rev

Rev 785 | Rev 789 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 785 Rev 788
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2007-2008. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2007-2008. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 785 $
8
$Revision: 788 $
9
 
9
 
Line 10... Line 10...
10
; Virtual-8086 mode manager
10
; Virtual-8086 mode manager
Line 844... Line 844...
844
;        ret
844
;        ret
Line 845... Line 845...
845
 
845
 
846
v86_irq:
846
v86_irq:
847
; push irq/pushad/jmp v86_irq
847
; push irq/pushad/jmp v86_irq
848
; eax = irq
-
 
849
        mov     ebx, eax
848
; eax = irq
850
        lea     esi, [esp+18h]
849
        lea     esi, [esp+18h]
851
        lea     edi, [esi+4]
850
        lea     edi, [esi+4]
852
        mov     ecx, 8
851
        mov     ecx, 8
853
        std
852
        std
854
        rep     movsd
853
        rep     movsd
855
        cld
854
        cld
856
        mov     edi, ebx
-
 
857
 
-
 
858
v86_irq2:
-
 
859
; pushad/call v86_irq2
-
 
860
; edi = irq
855
        mov     edi, eax
861
        pop     eax
856
        pop     eax
862
        mov     esi, [v86_irqhooks+edi*8]       ; get VM handle
857
        mov     esi, [v86_irqhooks+edi*8]       ; get VM handle
863
        mov     eax, [esi+V86_machine.pagedir]
858
        mov     eax, [esi+V86_machine.pagedir]
864
        call    get_pg_addr
859
        call    get_pg_addr