Subversion Repositories Kolibri OS

Rev

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

Rev 4593 Rev 5130
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2012. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2012. 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: 4593 $
8
$Revision: 5130 $
9
 
9
 
10
 
10
 
Line 126... Line 126...
126
        mov     [pg_data.kernel_pages-OS_BASE], edx
126
        mov     [pg_data.kernel_pages-OS_BASE], edx
127
        shr     edx, 10
127
        shr     edx, 10
128
        mov     [pg_data.kernel_tables-OS_BASE], edx
128
        mov     [pg_data.kernel_tables-OS_BASE], edx
Line 129... Line 129...
129
 
129
 
130
        xor     eax, eax
130
        xor     eax, eax
131
        mov     edi, sys_pgdir-OS_BASE
131
        mov     edi, sys_proc-OS_BASE
132
        mov     ecx, 4096/4
132
        mov     ecx, 8192/4
133
        cld
133
        cld
Line 134... Line 134...
134
        rep stosd
134
        rep stosd
135
 
135
 
136
        mov     edx, (sys_pgdir-OS_BASE)+ 0x800; (OS_BASE shr 20)
136
        mov     edx, (sys_proc-OS_BASE+PROC.pdt_0)+ 0x800; (OS_BASE shr 20)
Line 137... Line 137...
137
        bt      [cpu_caps-OS_BASE], CAPS_PSE
137
        bt      [cpu_caps-OS_BASE], CAPS_PSE
138
        jnc     .no_PSE
138
        jnc     .no_PSE
Line 175... Line 175...
175
        stosd
175
        stosd
176
        add     eax, 0x1000
176
        add     eax, 0x1000
177
        dec     ecx
177
        dec     ecx
178
        jnz     .map_kernel_tabs
178
        jnz     .map_kernel_tabs
Line 179... Line 179...
179
 
179
 
Line 180... Line 180...
180
        mov     dword [sys_pgdir-OS_BASE+(page_tabs shr 20)], sys_pgdir+PG_SW-OS_BASE
180
        mov     dword [sys_proc-OS_BASE+PROC.pdt_0+(page_tabs shr 20)], sys_proc+PROC.pdt_0+PG_SW-OS_BASE
181
 
181
 
182
        mov     edi, (sys_pgdir-OS_BASE)
182
        mov     edi, (sys_proc+PROC.pdt_0-OS_BASE)
183
        lea     esi, [edi+(OS_BASE shr 20)]
183
        lea     esi, [edi+(OS_BASE shr 20)]
184
        movsd
184
        movsd
185
        movsd
185
        movsd