Subversion Repositories Kolibri OS

Rev

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

Rev 395 Rev 400
Line 246... Line 246...
246
 
246
 
Line 247... Line 247...
247
           bt [cpu_caps], CAPS_PSE
247
           bt [cpu_caps], CAPS_PSE
248
           jnc .map_page_tables
248
           jnc .map_page_tables
249
           or esi, PG_LARGE+PG_UW
249
           or esi, PG_LARGE+PG_UW
250
           shr edx, 20
-
 
251
           mov ecx, edx
250
           mov edx, sys_pgdir+(LFB_BASE shr 20)
252
@@:
251
@@:
253
           mov [sys_pgdir+edx], esi
252
           mov [edx], esi
254
           add edx, 4
253
           add edx, 4
255
           add esi, 0x00400000
254
           add esi, 0x00400000
256
           dec edi
255
           dec edi
257
           jnz @B
256
           jnz @B
Line 258... Line 257...
258
 
257
 
259
           bt [cpu_caps], CAPS_PGE
258
           bt [cpu_caps], CAPS_PGE
260
           jnc @F
259
           jnc @F
261
           or dword [sys_pgdir+ecx], PG_GLOBAL
260
           or dword [sys_pgdir+(LFB_BASE shr 20)], PG_GLOBAL
262
@@:
261
@@:
263
           mov dword [LFBAddress], LFB_BASE
262
           mov dword [LFBAddress], LFB_BASE
264
           mov eax, cr3       ;flush TLB
263
           mov eax, cr3       ;flush TLB
265
           mov cr3, eax
264
           mov cr3, eax