Ignore:
Timestamp:
Aug 14, 2017, 11:39:03 AM (7 years ago)
Author:
alain
Message:

Change Time unit from cycle to TICK (in millisecond).
Fix several bugs in VFS.

File:
1 edited

Legend:

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

    r334 r367  
    218218
    219219            // launch I/O operation to load page from file system
    220             error = vfs_mapper_move_page( page , true );   // to mapper
     220            error = vfs_mapper_move_page( page,
     221                                          true );   // to mapper
    221222
    222223            if( error )
     
    448449
    449450        // get page base address
    450         uint8_t * base = (uint8_t *)GET_PTR( XPTR( local_cxy , page ) );
     451        xptr_t    base_xp  = ppm_page2base( XPTR( local_cxy , page ) );
     452        uint8_t * base_ptr = (uint8_t *)GET_PTR( base_xp );
    451453
    452454        // compute source and destination pointers
     
    454456        {
    455457            dst_ptr = buffer_ptr + done;
    456             src_ptr = base + page_offset;
     458            src_ptr = base_ptr + page_offset;
    457459        }
    458460        else
    459461        {
    460462            src_ptr = buffer_ptr + done;
    461             dst_ptr = base + page_offset;
     463            dst_ptr = base_ptr + page_offset;
    462464
    463465            page_do_dirty( page );
Note: See TracChangeset for help on using the changeset viewer.