Ignore:
Timestamp:
Jul 20, 2017, 12:55:23 PM (7 years ago)
Author:
alain
Message:

Fix a major bug in FATFS : miss handling in the FAT mapper.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/mm/mapper.c

    r238 r246  
    4040#include <mapper.h>
    4141
    42 //////////////////////////
    43 mapper_t * mapper_create()
     42//////////////////////////////////////////////
     43mapper_t * mapper_create( vfs_fs_type_t type )
    4444{
    4545    mapper_t * mapper;
     
    7878    }
    7979
     80    // initialize mapper type
     81    mapper->type = type;
     82
    8083    // initialize mapper lock
    8184    rwlock_init(  &mapper->lock );
     
    139142    error_t       error;
    140143
    141     mapper_dmsg("\n[INFO] %s : enter for page %d / mapper = %x\n",
     144    mapper_dmsg("\n[INFO] %s : enters for page %d in mapper %x\n",
    142145                __FUNCTION__ , index , mapper );
    143146
     
    254257    }
    255258
    256     mapper_dmsg("\n[INFO] %s : exit for page %d / page desc = %x\n",
    257                 __FUNCTION__ , index , page );
     259    mapper_dmsg("\n[INFO] %s : exit for page %d in mapper %x / page_desc = %x\n",
     260                __FUNCTION__ , index , mapper , page );
    258261
    259262    return page;
Note: See TracChangeset for help on using the changeset viewer.