Subversion Repositories Kolibri OS

Rev

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

Rev 5359 Rev 5360
Line 69... Line 69...
69
format binary as "mnt"
69
format binary as "mnt"
Line 70... Line 70...
70
 
70
 
71
include 'macros.inc'
71
include 'macros.inc'
Line 72... Line 72...
72
include 'struct.inc'
72
include 'struct.inc'
Line 73... Line 73...
73
 
73
 
74
$Revision: 5359 $
74
$Revision: 5360 $
Line 349... Line 349...
349
        mov     ds, bx
349
        mov     ds, bx
350
        mov     es, bx
350
        mov     es, bx
351
        mov     fs, cx
351
        mov     fs, cx
352
        mov     gs, bx
352
        mov     gs, bx
Line -... Line 353...
-
 
353
 
-
 
354
        xor     eax, eax
-
 
355
        mov     ebx, 0xFFFFF000+PG_SHARED+PG_NOCACHE+PG_UWR
-
 
356
        bt      [cpu_caps], CAPS_PAT
-
 
357
        setc    al
-
 
358
        shl     eax, 7
-
 
359
        or      ebx, eax
353
 
360
 
354
        mov     eax, PG_GLOBAL
361
        mov     eax, PG_GLOBAL
355
        bt      [cpu_caps], CAPS_PGE
362
        bt      [cpu_caps], CAPS_PGE
Line 356... Line 363...
356
        jnc     @F
363
        jnc     @F
357
 
364
 
Line 358... Line 365...
358
        or      [sys_proc+PROC.pdt_0+(OS_BASE shr 20)], eax
365
        or      [sys_proc+PROC.pdt_0+(OS_BASE shr 20)], eax
359
        or      [pte_valid_mask], eax
366
        or      ebx, eax
360
 
367
 
361
        mov     ebx, cr4
368
        mov     eax, cr4
-
 
369
        or      eax, CR4_PGE
-
 
370
        mov     cr4, eax
362
        or      ebx, CR4_PGE
371
@@:
363
        mov     cr4, ebx
372
        mov     [pte_valid_mask], ebx
364
@@:
373
 
Line 365... Line 374...
365
        xor     eax, eax
374
        xor     eax, eax