Ignore:
Timestamp:
Dec 19, 2013, 9:36:48 AM (11 years ago)
Author:
alain
Message:

Introducing support for TSAR fixed format cluster index (cluster_xy)
We have now 4 parameters defined in map.xml:

  • X_WIDTH, Y_WIDTH define the fixed format (typically X_WIDTH = 4 / Y_WIDTH = 4)
  • X_SIZE, Y_SIZE define the actual TSAR 2D mesh variable size (from 1 to 16)
File:
1 edited

Legend:

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

    r260 r263  
    497497    fat.cache_lba = lba;
    498498
    499 //  #if GIET_DEBUG_FAT
    500 //  display_fat_cache();
    501 //  #endif
     499    #if GIET_DEBUG_FAT
     500    display_fat_cache();
     501    #endif
    502502
    503503    // in this loop we scan all names in directory identified by cluster:
     
    714714    if ( _ioc_read( mode,             // mode for IOC driver
    715715                    0,                // sector index
    716                     fat.fat_cache,   // buffer address
     716                    fat.fat_cache,    // buffer address
    717717                    1 ) )             // one sector
    718718    {
     
    760760#if GIET_DEBUG_FAT
    761761_tty_get_lock( 0 );
    762 _puts("\n[FAT DEBUG] First Partition Sector Loaded\n");
     762_puts("\n[FAT DEBUG] Partition First Sector Loaded\n");
    763763_tty_release_lock( 0 );
    764764#endif
     
    839839///////////////////////////////////////////////////////////////////////////////
    840840// This function checks that the kernel FAT structure has been initialised,
    841 // and makes the FAT initialisation if required (first user _fat_open request).
     841// and makes the FAT initialisation if it is the first user open request.
    842842// This function searches a file identified by the "pathname" argument.
    843843// It starts from root (cluster 2) to scan successively each subdirectory.
     
    871871    if( fat.initialised != FAT_INITIALISED )
    872872    {
    873         _fat_init( IOC_KERNEL_MODE );  // we use KERNEL_MODE, because
    874                                        // we need to write into FAT cache
     873        _fat_init( IOC_BOOT_VA_MODE );
    875874    }
    876875 
    877     // Scan the sub-directories, starting from the root directory (cluster 2)
     876    // Scan the directories, starting from the root directory (cluster 2)
    878877    // - The get_name_from_path() function extracts (successively)
    879878    //   each directory name from the pathname, and store it in name[] buffer
Note: See TracChangeset for help on using the changeset viewer.