Subversion Repositories Kolibri OS

Rev

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

Rev 6880 Rev 8869
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2016. 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: 6880 $
8
$Revision: 8869 $
9
 
9
 
10
; CD external functions
10
; CD external functions
11
;   in:
11
;   in:
Line 54... Line 54...
54
        call    change_task
54
        call    change_task
55
        jmp     reserve_cd
55
        jmp     reserve_cd
56
;-----------------------------------------------------------------------------
56
;-----------------------------------------------------------------------------
57
reserve_ok2:
57
reserve_ok2:
58
        push    eax
58
        push    eax
59
        mov     eax, [CURRENT_TASK]
59
        mov     eax, [current_slot_idx]
60
        shl     eax, 5
60
        shl     eax, 5
61
        mov     eax, [eax+CURRENT_TASK+TASKDATA.pid]
61
        mov     eax, [eax+TASK_TABLE+TASKDATA.pid]
62
        mov     [cd_status], eax
62
        mov     [cd_status], eax
63
        pop     eax
63
        pop     eax
64
        sti
64
        sti
65
        ret
65
        ret
66
;-----------------------------------------------------------------------------
66
;-----------------------------------------------------------------------------