Rev 379 | Rev 425 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 379 | Rev 381 | ||
---|---|---|---|
Line 20... | Line 20... | ||
20 | add eax,100 |
20 | add eax,100 |
21 | mov [next_usage_update],eax |
21 | mov [next_usage_update],eax |
22 | call updatecputimes |
22 | call updatecputimes |
23 | .nocounter: |
23 | .nocounter: |
Line 24... | Line 24... | ||
24 | 24 | ||
25 | cmp [0xffff], byte 1 |
25 | cmp [DONT_SWITCH], byte 1 |
Line 26... | Line 26... | ||
26 | jne .change_task |
26 | jne .change_task |
27 | 27 | ||
28 | mov al,0x20 ; send End Of Interrupt signal |
28 | mov al,0x20 ; send End Of Interrupt signal |
Line 29... | Line 29... | ||
29 | mov dx,0x20 |
29 | mov dx,0x20 |
Line 30... | Line 30... | ||
30 | out dx,al |
30 | out dx,al |
31 | 31 | ||
Line 32... | Line 32... | ||
32 | mov [0xffff], byte 0 |
32 | mov [DONT_SWITCH], byte 0 |
Line 77... | Line 77... | ||
77 | ; \end{Mario79} |
77 | ; \end{Mario79} |
78 | call find_next_task |
78 | call find_next_task |
79 | test eax, eax ; the same task -> skip switch |
79 | test eax, eax ; the same task -> skip switch |
80 | jnz .return |
80 | jnz .return |
81 | @@: |
81 | @@: |
82 | mov [0xffff],byte 1 |
82 | mov [DONT_SWITCH],byte 1 |
83 | call do_change_task |
83 | call do_change_task |
Line 84... | Line 84... | ||
84 | 84 | ||
85 | .return: |
85 | .return: |
86 | popad |
86 | popad |