Subversion Repositories Kolibri OS

Rev

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

Rev 3631 Rev 3681
Line 42... Line 42...
42
;;  20.5.2002  Hd status check - VT                                ;;
42
;;  20.5.2002  Hd status check - VT                                ;;
43
;;  29.6.2002  Improved fat32 verification - VT                    ;;
43
;;  29.6.2002  Improved fat32 verification - VT                    ;;
44
;;                                                                 ;;
44
;;                                                                 ;;
45
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
45
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Line 46... Line 46...
46
 
46
 
Line 47... Line 47...
47
$Revision: 3631 $
47
$Revision: 3681 $
Line 48... Line 48...
48
 
48
 
Line 164... Line 164...
164
        jz      .return0
164
        jz      .return0
165
; The only reason to be invalid partition now is FAT12. Since the test for
165
; The only reason to be invalid partition now is FAT12. Since the test for
166
; FAT size requires knowledge of some calculated values, which are also used
166
; FAT size requires knowledge of some calculated values, which are also used
167
; in the normal operation, let's hope for the best and allocate data now; if
167
; in the normal operation, let's hope for the best and allocate data now; if
168
; it will prove wrong, just deallocate it.
168
; it will prove wrong, just deallocate it.
169
        push    ebx
-
 
170
        movi    eax, sizeof.FAT
169
        movi    eax, sizeof.FAT
171
        call    malloc
170
        call    malloc
172
        pop     ebx
-
 
173
        test    eax, eax
171
        test    eax, eax
174
        jz      .return0
172
        jz      .return0
175
        mov     ecx, [ebp+8]
173
        mov     ecx, [ebp+8]
176
        mov     dword [eax+FAT.p.FirstSector], ecx
174
        mov     dword [eax+FAT.p.FirstSector], ecx
177
        mov     ecx, [ebp+12]
175
        mov     ecx, [ebp+12]