Subversion Repositories Kolibri OS

Rev

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

Rev 837 Rev 848
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: 820 $
8
$Revision: 848 $
9
 
9
 
Line 10... Line 10...
10
; Virtual-8086 mode manager
10
; Virtual-8086 mode manager
Line 76... Line 76...
76
        stosd
76
        stosd
77
; ...and also copy system page tables
77
; ...and also copy system page tables
78
; thx to Serge, system is located at high addresses
78
; thx to Serge, system is located at high addresses
79
        add     edi, (OS_BASE shr 20) - 4
79
        add     edi, (OS_BASE shr 20) - 4
80
        push    esi
80
        push    esi
81
        mov     esi, (OS_BASE shr 20) + sys_pgdir
81
        mov     esi, (OS_BASE shr 20) + _sys_pdbr
82
        mov     ecx, 0x80000000 shr 22
82
        mov     ecx, 0x80000000 shr 22
83
        rep     movsd
83
        rep     movsd
Line 84... Line 84...
84
 
84
 
85
        mov     eax, [ebx+V86_machine.pagedir]   ;root dir also is
85
        mov     eax, [ebx+V86_machine.pagedir]   ;root dir also is