Subversion Repositories Kolibri OS

Rev

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

Rev 115 Rev 187
Line 60... Line 60...
60
        pushfd
60
        pushfd
61
        cli
61
        cli
62
        pushad
62
        pushad
Line 63... Line 63...
63
 
63
 
-
 
64
        call  update_counters
-
 
65
; \begin{Mario79}
-
 
66
        cmp     [dma_task_switched], 1
-
 
67
        jne     .find_next_task
-
 
68
        mov     [dma_task_switched], 0
-
 
69
        mov     ebx, [dma_process]
-
 
70
        cmp     [0x3000], ebx
-
 
71
        je      .return
-
 
72
        mov     edi, [dma_slot_ptr]
-
 
73
        mov     [0x3000], ebx
-
 
74
        mov     [0x3010], edi
-
 
75
        jmp     @f
-
 
76
.find_next_task:
64
        call  update_counters
77
; \end{Mario79}
65
        call  find_next_task
78
        call  find_next_task
66
        test  eax, eax    ; the same task -> skip switch
79
        test  eax, eax    ; the same task -> skip switch
67
        jnz    .return
80
        jnz    .return
68
 
81
@@:
69
        mov   [0xffff],byte 1
82
        mov   [0xffff],byte 1
Line 70... Line 83...
70
        call  do_change_task
83
        call  do_change_task
71
 
84