Subversion Repositories Kolibri OS

Rev

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

Rev 3555 Rev 3908
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2011. 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: 3555 $
8
$Revision: 3908 $
9
 
9
 
10
 
10
 
Line 766... Line 766...
766
        cmp     [IDE_Channel_2], 0
766
        cmp     [IDE_Channel_2], 0
767
        jne     .ide1_1
767
        jne     .ide1_1
768
        cmp     [cd_status], 0
768
        cmp     [cd_status], 0
769
        jne     .end
769
        jne     .end
770
        mov     [IDE_Channel_2], 1
770
        mov     [IDE_Channel_2], 1
-
 
771
        mov     ecx, ide_channel2_mutex
-
 
772
        call    mutex_lock
771
        call    reserve_ok2
773
        call    reserve_ok2
772
        mov     [ChannelNumber], 2
774
        mov     [ChannelNumber], 2
773
        mov     [DiskNumber], 1
775
        mov     [DiskNumber], 1
774
        mov     [cdpos], 4
776
        mov     [cdpos], 4
775
        call    GetEvent_StatusNotification
777
        call    GetEvent_StatusNotification
Line 789... Line 791...
789
        cmp     [IDE_Channel_2], 0
791
        cmp     [IDE_Channel_2], 0
790
        jne     .ide1_1
792
        jne     .ide1_1
791
        cmp     [cd_status], 0
793
        cmp     [cd_status], 0
792
        jne     .end
794
        jne     .end
793
        mov     [IDE_Channel_2], 1
795
        mov     [IDE_Channel_2], 1
-
 
796
        mov     ecx, ide_channel2_mutex
-
 
797
        call    mutex_lock
794
        call    reserve_ok2
798
        call    reserve_ok2
795
        mov     [ChannelNumber], 2
799
        mov     [ChannelNumber], 2
796
        mov     [DiskNumber], 0
800
        mov     [DiskNumber], 0
797
        mov     [cdpos], 3
801
        mov     [cdpos], 3
798
        call    GetEvent_StatusNotification
802
        call    GetEvent_StatusNotification
Line 812... Line 816...
812
        cmp     [IDE_Channel_1], 0
816
        cmp     [IDE_Channel_1], 0
813
        jne     .end
817
        jne     .end
814
        cmp     [cd_status], 0
818
        cmp     [cd_status], 0
815
        jne     .end
819
        jne     .end
816
        mov     [IDE_Channel_1], 1
820
        mov     [IDE_Channel_1], 1
-
 
821
        mov     ecx, ide_channel1_mutex
-
 
822
        call    mutex_lock
817
        call    reserve_ok2
823
        call    reserve_ok2
818
        mov     [ChannelNumber], 1
824
        mov     [ChannelNumber], 1
819
        mov     [DiskNumber], 1
825
        mov     [DiskNumber], 1
820
        mov     [cdpos], 2
826
        mov     [cdpos], 2
821
        call    GetEvent_StatusNotification
827
        call    GetEvent_StatusNotification
Line 835... Line 841...
835
        cmp     [IDE_Channel_1], 0
841
        cmp     [IDE_Channel_1], 0
836
        jne     .end
842
        jne     .end
837
        cmp     [cd_status], 0
843
        cmp     [cd_status], 0
838
        jne     .end
844
        jne     .end
839
        mov     [IDE_Channel_1], 1
845
        mov     [IDE_Channel_1], 1
-
 
846
        mov     ecx, ide_channel1_mutex
-
 
847
        call    mutex_lock
840
        call    reserve_ok2
848
        call    reserve_ok2
841
        mov     [ChannelNumber], 1
849
        mov     [ChannelNumber], 1
842
        mov     [DiskNumber], 0
850
        mov     [DiskNumber], 0
843
        mov     [cdpos], 1
851
        mov     [cdpos], 1
844
        call    GetEvent_StatusNotification
852
        call    GetEvent_StatusNotification