Subversion Repositories Kolibri OS

Rev

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

Rev 8 Rev 9
Line 38... Line 38...
38
        add   eax, [edi+0x14] ; counter sum
38
        add   eax, [edi+0x14] ; counter sum
39
        mov   [edi+0x14], eax
39
        mov   [edi+0x14], eax
Line 40... Line 40...
40
 
40
 
Line -... Line 41...
-
 
41
        mov   ebx,[0x3000]
41
        mov   ebx,[0x3000]
42
 
42
 
43
        xor   esi,esi           ;esi - should we change task?
Line 43... Line 44...
43
        cmp   [0xffff], byte 1
44
        cmp   [0xffff], byte 1
44
        je    .do_not_change_task
45
        je    .do_not_change_task
Line 65... Line 66...
65
        mov   [0x3000],ebx
66
        mov   [0x3000],ebx
66
        mov   [0x3010],edi
67
        mov   [0x3010],edi
Line 67... Line 68...
67
 
68
 
68
        jmp   @f
69
        jmp   @f
69
     .do_not_change_task:
70
     .do_not_change_task:
70
        mov   [noct], 1
71
        inc   esi          ;set don't change task flag
Line 71... Line 72...
71
       @@:
72
       @@:
72
 
73
 
Line 87... Line 88...
87
 
88
 
88
        mov   al,0x20   ; send End Of Interrupt signal
89
        mov   al,0x20   ; send End Of Interrupt signal
89
        mov   dx,0x20
90
        mov   dx,0x20
Line 90... Line 91...
90
        out   dx,al
91
        out   dx,al
91
 
92
 
-
 
93
        test  esi,esi   ; skip jmp to TSS if we aren't going to switch tasks
92
        cmp   [noct], 1
94
        jnz    @f
93
        je    @f
-
 
94
.switch:
95
        
95
        jmp   pword [0xB000]
-
 
96
        inc [context_counter] ;noname & halyavin
96
.switch:
Line -... Line 97...
-
 
97
        inc   [context_counter] ;noname & halyavin
97
       @@:
98
        jmp   pword [0xB000]
98
        mov   [noct], 0
99
 
99
        
100
       @@:
Line 100... Line 101...
100
        pop   es ds
101
        pop   es ds
101
        popad
102
        popad
102
        iret
-
 
103
 
103
        iret
Line 104... Line 104...
104
 
104
 
105
 
105