Subversion Repositories Kolibri OS

Rev

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

Rev 427 Rev 430
Line 10... Line 10...
10
align 4
10
align 4
11
idtreg:
11
idtreg:
12
     dw   8*0x41-1
12
     dw   8*0x41-1
13
     dd   idts+8
13
     dd   idts+8
Line 14... Line -...
14
 
-
 
15
build_process_gdt_tss_pointer:
-
 
16
 
-
 
17
        mov    ecx,tss_data
-
 
18
        mov    edi,0
-
 
19
      setgdtl2:
-
 
20
        mov    [edi+gdts+ tss0 +0], word tss_step
-
 
21
        mov    [edi+gdts+ tss0 +2], cx
-
 
22
        mov    eax,ecx
-
 
23
        shr    eax,16
-
 
24
        mov    [edi+gdts+ tss0 +4], al
-
 
25
        mov    [edi+gdts+ tss0 +7], ah
-
 
26
        mov    [edi+gdts+ tss0 +5], word 01010000b *256 +11101001b
-
 
27
        add    ecx,tss_step
-
 
28
        add    edi,8
-
 
29
        cmp    edi,8*(max_processes+5)
-
 
30
        jbe    setgdtl2
-
 
31
 
-
 
32
        ret
-
 
33
 
14
 
Line 34... Line 15...
34
build_interrupt_table:
15
build_interrupt_table:
35
 
16
 
36
        mov    edi, idts+8
17
        mov    edi, idts+8
Line 834... Line 815...
834
 
815
 
Line 835... Line 816...
835
build_scheduler:
816
build_scheduler:
836
 
817
 
837
        mov    esi,boot_sched_1
818
        mov    esi,boot_sched_1
Line 838... Line 819...
838
        call   boot_log
819
        call   boot_log
839
        call   build_process_gdt_tss_pointer
820
  ;      call   build_process_gdt_tss_pointer
840
 
-
 
Line 841... Line 821...
841
        mov    esi,boot_sched_2
821