Subversion Repositories Kolibri OS

Rev

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

Rev 593 Rev 649
Line 3... Line 3...
3
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
3
;; Copyright (C) KolibriOS team 2004-2007. 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: 649 $
9
 
9
 
10
 
10
 
Line 47... Line 47...
47
fatRESERVED          dd 0x0FFFFFF6
47
fatRESERVED          dd 0x0FFFFFF6
48
fatBAD               dd 0x0FFFFFF7
48
fatBAD               dd 0x0FFFFFF7
49
fatEND               dd 0x0FFFFFF8
49
fatEND               dd 0x0FFFFFF8
50
fatMASK              dd 0x0FFFFFFF
50
fatMASK              dd 0x0FFFFFFF
Line -... Line 51...
-
 
51
 
-
 
52
fatStartScan         dd 2
51
 
53
 
52
fs_dependent_data_end:
54
fs_dependent_data_end:
53
file_system_data_size = $ - PARTITION_START
55
file_system_data_size = $ - PARTITION_START
54
if file_system_data_size > 96
56
if file_system_data_size > 96
55
ERROR: sizeof(file system data) too big!
57
ERROR: sizeof(file system data) too big!
Line 421... Line 423...
421
    xor   edx,edx
423
    xor   edx,edx
422
    div   dword [SECTORS_PER_CLUSTER]
424
    div   dword [SECTORS_PER_CLUSTER]
423
    inc   eax
425
    inc   eax
424
    mov   [LAST_CLUSTER],eax
426
    mov   [LAST_CLUSTER],eax
425
    dec   eax                   ; cluster count
427
    dec   eax                   ; cluster count
-
 
428
    mov   [fatStartScan],2
Line 426... Line 429...
426
 
429
 
427
    ; limits by Microsoft Hardware White Paper v1.03
430
    ; limits by Microsoft Hardware White Paper v1.03
428
    cmp   eax,4085              ; 0xff5
431
    cmp   eax,4085              ; 0xff5
429
    jb    problem_fat_dec_count ; fat12 not supported
432
    jb    problem_fat_dec_count ; fat12 not supported
Line 434... Line 437...
434
    mov   eax,[ebx+0x2c]        ; rootdir cluster
437
    mov   eax,[ebx+0x2c]        ; rootdir cluster
435
    mov   [ROOT_CLUSTER],eax
438
    mov   [ROOT_CLUSTER],eax
436
    movzx eax,word [ebx+0x30]   ; fs info sector
439
    movzx eax,word [ebx+0x30]   ; fs info sector
437
    add   eax,[PARTITION_START]
440
    add   eax,[PARTITION_START]
438
    mov   [ADR_FSINFO],eax
441
    mov   [ADR_FSINFO],eax
-
 
442
    call  hd_read
-
 
443
    mov   eax,[ebx+0x1ec]
-
 
444
    cmp   eax,-1
-
 
445
    jz    @f
-
 
446
    mov   [fatStartScan],eax
-
 
447
@@:
Line 439... Line 448...
439
 
448
 
Line 440... Line 449...
440
    popad
449
    popad
441
 
450