Subversion Repositories Kolibri OS

Rev

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

Rev 7165 Rev 7276
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: 7165 $
74
$Revision: 7276 $
Line 432... Line 432...
432
 
432
 
433
        call    build_interrupt_table ;lidt is executed
433
        call    build_interrupt_table ;lidt is executed
Line 434... Line 434...
434
          ;lidt [idtreg]
434
          ;lidt [idtreg]
-
 
435
 
-
 
436
        call    init_kernel_heap
435
 
437
        call    init_fpu
-
 
438
        mov     eax, [xsave_area_size]
436
        call    init_kernel_heap
439
        lea     eax, [eax*2 + RING0_STACK_SIZE*2]
Line 437... Line 440...
437
        stdcall kernel_alloc, (RING0_STACK_SIZE+512) * 2
440
        stdcall kernel_alloc, eax
Line 438... Line 441...
438
        mov     [os_stack_seg], eax
441
        mov     [os_stack_seg], eax
Line 467... Line 470...
467
        call    init_video
470
        call    init_video
468
        call    init_mtrr
471
        call    init_mtrr
469
        mov     [LFBAddress], LFB_BASE
472
        mov     [LFBAddress], LFB_BASE
470
        mov     ecx, bios_fb
473
        mov     ecx, bios_fb
471
        call    set_framebuffer
474
        call    set_framebuffer
472
        call    init_fpu
-
 
473
        call    init_malloc
475
        call    init_malloc
Line 474... Line 476...
474
 
476
 
475
        stdcall alloc_kernel_space, 0x50000         ; FIXME check size
477
        stdcall alloc_kernel_space, 0x50000         ; FIXME check size
Line 588... Line 590...
588
 
590
 
Line 589... Line 591...
589
        mov     [current_process], sys_proc
591
        mov     [current_process], sys_proc
590
 
592
 
591
        mov     edx, SLOT_BASE+256*1
593
        mov     edx, SLOT_BASE+256*1
-
 
594
        mov     ebx, [os_stack_seg]
592
        mov     ebx, [os_stack_seg]
595
        add     ebx, RING0_STACK_SIZE
593
        add     ebx, 0x2000
596
        add     ebx, [xsave_area_size]
594
        call    setup_os_slot
597
        call    setup_os_slot
595
        mov     dword [edx], 'IDLE'
598
        mov     dword [edx], 'IDLE'
596
        sub     [edx+APPDATA.saved_esp], 4
599
        sub     [edx+APPDATA.saved_esp], 4