Subversion Repositories Kolibri OS

Rev

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

Rev 8985 Rev 8986
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2013-2015. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2013-2015. All rights reserved. ;;
4
;; Distributed under terms of the GNU General Public License    ;;
4
;; Distributed under terms of the GNU General Public License    ;;
5
;;                                                              ;;
5
;;                                                              ;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
6
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 7... Line 7...
7
 
7
 
Line 8... Line 8...
8
$Revision: 5363 $
8
$Revision: 8986 $
9
 
9
 
Line 203... Line 203...
203
        test    eax, eax
203
        test    eax, eax
204
        jnz     @f
204
        jnz     @f
205
; If failed, set [usb_event] to -1 and terminate myself.
205
; If failed, set [usb_event] to -1 and terminate myself.
206
        dbgstr 'cannot create event for USB thread'
206
        dbgstr 'cannot create event for USB thread'
207
        or      [usb_event], -1
207
        or      [usb_event], -1
208
        jmp     sys_end
208
        jmp     syscall_end
209
@@:
209
@@:
210
        mov     [usb_event], eax
210
        mov     [usb_event], eax
211
        push    -1              ; initial timeout: infinite
211
        push    -1              ; initial timeout: infinite
212
usb_thread_wait:
212
usb_thread_wait:
213
; 2. Main loop: wait for either wakeup event or timeout.
213
; 2. Main loop: wait for either wakeup event or timeout.