Ignore:
Timestamp:
Jul 23, 2014, 10:12:56 AM (10 years ago)
Author:
alain
Message:

Align the fat structure (including the fat cache) on 512 bytes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_fat32/fat32.c

    r358 r360  
    3131//////////////////////////////////////////////////////////////////////////////////
    3232
    33 __attribute__((section (".kdata")))
    34 fat32_fs_t fat __attribute__((aligned(64)));
     33__attribute__((section (".fatdata")))
     34fat32_fs_t fat __attribute__((aligned(512)));
    3535
    3636//////////////////////////////////////////////////////////////////////////////////
     
    5050    for ( line=0 ; line<16 ; line++ )
    5151    {
    52         // display address
    53         _printf( "%x : ", (fat.cache_lba<<9) + (line<<5) );
     52        // display line index
     53        _printf( "%x : ", line );
    5454
    5555        // display data hexa
     
    790790
    791791#if GIET_DEBUG_FAT
    792 _printf("\n[FAT DEBUG] enter _scan_directory() for dir/file %s\n", file_name );
     792_printf("\n[FAT DEBUG] enters _scan_directory() for dir/file %s\n", file_name );
    793793#endif
    794794
     
    10961096    _printf("\nNumber of sectors for one FAT    %x", fat.fat_sectors );
    10971097    _printf("\nNumber of free clusters          %x", fat.number_free_cluster );
    1098     _printf("\nLast last allocated cluster      %x", fat.last_cluster_allocated );
     1098    _printf("\nLast allocated cluster           %x", fat.last_cluster_allocated );
    10991099    _printf("\n#################################################################\n");
    11001100}
Note: See TracChangeset for help on using the changeset viewer.