Subversion Repositories Kolibri OS

Rev

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

Rev 420 Rev 421
Line 62... Line 62...
62
        pushfd
62
        pushfd
63
        cli
63
        cli
64
        pushad
64
        pushad
Line 65... Line 65...
65
 
65
 
-
 
66
        call  update_counters
-
 
67
 
-
 
68
if 0
66
        call  update_counters
69
 
67
; \begin{Mario79}
70
; \begin{Mario79}
68
        cmp     [dma_task_switched], 1
71
        cmp     [dma_task_switched], 1
69
        jne     .find_next_task
72
        jne     .find_next_task
70
        mov     [dma_task_switched], 0
73
        mov     [dma_task_switched], 0
Line 75... Line 78...
75
        mov     [CURRENT_TASK], ebx
78
        mov     [CURRENT_TASK], ebx
76
        mov     [TASK_BASE], edi
79
        mov     [TASK_BASE], edi
77
        jmp     @f
80
        jmp     @f
78
.find_next_task:
81
.find_next_task:
79
; \end{Mario79}
82
; \end{Mario79}
-
 
83
 
-
 
84
end if
-
 
85
 
80
        call  find_next_task
86
        call  find_next_task
81
        test  eax, eax    ; the same task -> skip switch
87
        test  eax, eax    ; the same task -> skip switch
82
        jnz    .return
88
        jnz    .return
83
@@:
89
@@:
84
        mov   [DONT_SWITCH],byte 1
90
        mov   [DONT_SWITCH],byte 1
Line 212... Line 218...
212
;        mov   [far_jump.offs], eax  ; offset
218
;        mov   [far_jump.offs], eax  ; offset
213
;        jmp   pword [far_jump]
219
;        jmp   pword [far_jump]
214
;        inc   [context_counter] ;noname & halyavin
220
;        inc   [context_counter] ;noname & halyavin
215
;ret
221
;ret
Line 216... Line -...
216
 
-
 
217
 
-
 
218
 
222
 
219
align 4
223
align 4
Line 220... Line 224...
220
updatecputimes:
224
updatecputimes:
221
 
225