Rev 523 | Rev 593 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 523 | Rev 531 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | $Revision: 523 $ |
1 | $Revision: 531 $ |
2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
3 | ;; ;; |
3 | ;; ;; |
4 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
4 | ;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;; |
5 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
5 | ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; |
6 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;; Distributed under terms of the GNU General Public License ;; |
Line 170... | Line 170... | ||
170 | 170 | ||
171 | cmp al, 5 |
171 | cmp al, 5 |
172 | jne .noevents |
172 | jne .noevents |
173 | call get_event_for_app |
173 | call get_event_for_app |
- | 174 | test eax, eax |
|
- | 175 | jnz @f |
|
- | 176 | mov eax, ebx |
|
- | 177 | shl eax, 8 |
|
- | 178 | mov eax, [SLOT_BASE + APPDATA.wait_timeout + eax] |
|
174 | test eax, eax |
179 | cmp eax, [timer_ticks] |
- | 180 | jae .waiting_for_event |
|
- | 181 | xor eax, eax |
|
175 | jz .waiting_for_event |
182 | @@: |
176 | mov [event_sched], eax |
183 | mov [event_sched], eax |
177 | mov [edi+TASKDATA.state], byte 0 |
184 | mov [edi+TASKDATA.state], byte 0 |
178 | .noevents: |
185 | .noevents: |
179 | .found: |
186 | .found: |