Subversion Repositories Kolibri OS

Rev

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

Rev 593 Rev 709
Line 1... Line 1...
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
2
;;                                                              ;;
2
;;                                                              ;;
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2008. 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: 593 $
8
$Revision: 709 $
9
 
9
 
10
 
10
 
Line 80... Line 80...
80
      call  partition_data_transfer
80
      call  partition_data_transfer
81
      add   [transfer_adress],100
81
      add   [transfer_adress],100
82
      inc   [fat32part]
82
      inc   [fat32part]
83
      jmp   search_partitions_ide3_1
83
      jmp   search_partitions_ide3_1
Line -... Line 84...
-
 
84
 
-
 
85
end_search_partitions_ide:
-
 
86
        mov     [hdpos], 80h
-
 
87
        mov     ecx, [NumBiosDisks]
-
 
88
        test    ecx, ecx
-
 
89
        jz      end_search_partitions
-
 
90
start_search_partitions_bd:
-
 
91
        push    ecx
-
 
92
        mov     eax, [hdpos]
-
 
93
        and     [BiosDiskPartitions+(eax-80h)*4], 0
-
 
94
        mov     [fat32part], 1
-
 
95
search_partitions_bd:
-
 
96
        call    set_FAT32_variables
-
 
97
        cmp     [problem_partition], 0
-
 
98
        jne     end_search_partitions_bd
-
 
99
        mov     eax, [hdpos]
-
 
100
        inc     [BiosDiskPartitions+(eax-80h)*4]
-
 
101
        call    partition_data_transfer
-
 
102
        add     [transfer_adress], 100
-
 
103
        inc     [fat32part]
-
 
104
        jmp     search_partitions_bd
-
 
105
end_search_partitions_bd:
-
 
106
        pop     ecx
-
 
107
        inc     [hdpos]
-
 
108
        loop    start_search_partitions_bd
Line 84... Line 109...
84
 
109
        jmp     end_search_partitions
85
 
110
 
86
partition_data_transfer:
111
partition_data_transfer:
87
     mov edi,[transfer_adress]
112
     mov edi,[transfer_adress]
Line 101... Line 126...
101
     rep movsd
126
     rep movsd
102
     pop  edi
127
     pop  edi
103
;     sti
128
;     sti
104
     ret
129
     ret
Line 105... Line 130...
105
 
130
 
Line 106... Line 131...
106
 end_search_partitions_ide:
131
 end_search_partitions:
107
 
132
 
108
;PARTITION_START      dd 0x3f
133
;PARTITION_START      dd 0x3f
109
;PARTITION_END        dd 0
134
;PARTITION_END        dd 0