Subversion Repositories Kolibri OS

Rev

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

Rev 5356 Rev 5359
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: 5356 $
74
$Revision: 5359 $
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
 
353
 
354
        mov     eax, PG_GLOBAL
354
        bt      [cpu_caps], CAPS_PGE
355
        bt      [cpu_caps], CAPS_PGE
Line 355... Line 356...
355
        jnc     @F
356
        jnc     @F
-
 
357
 
Line 356... Line 358...
356
 
358
        or      [sys_proc+PROC.pdt_0+(OS_BASE shr 20)], eax
357
        or      dword [sys_proc+PROC.pdt_0+(OS_BASE shr 20)], PG_GLOBAL
359
        or      [pte_valid_mask], eax
358
 
360
 
359
        mov     ebx, cr4
361
        mov     ebx, cr4
Line 752... Line 754...
752
        mov     [cr4_ap+OS_BASE], eax
754
        mov     [cr4_ap+OS_BASE], eax
753
        mov     esi, OS_BASE + ap_init16
755
        mov     esi, OS_BASE + ap_init16
754
        mov     edi, OS_BASE + 8000h
756
        mov     edi, OS_BASE + 8000h
755
        mov     ecx, (ap_init16_size + 3) / 4
757
        mov     ecx, (ap_init16_size + 3) / 4
756
        rep movsd
758
        rep movsd
757
        stdcall map_io_mem, [acpi_lapic_base], 0x1000, PG_SWR+PG_NOCACHE
759
        stdcall map_io_mem, [acpi_lapic_base], 0x1000, PG_GLOBAL+PG_NOCACHE+PG_SWR
758
        mov     [LAPIC_BASE], eax
760
        mov     [LAPIC_BASE], eax
759
        lea     edi, [eax+300h]
761
        lea     edi, [eax+300h]
760
        mov     esi, smpt+4
762
        mov     esi, smpt+4
761
        dec     ebx
763
        dec     ebx
762
.wake_cpus_loop:
764
.wake_cpus_loop: