Ignore:
Timestamp:
Aug 3, 2017, 10:15:18 AM (7 years ago)
Author:
alain
Message:

Redefine the fuctions ppm_base2page() / ppm_page2base() / ppm_page2ppn() / ppm_ppn2page() / ppm_base2ppn() / ppm_ppn2base(),
to use explicitely extended pointers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/vfs/fatfs.c

    r279 r315  
    296296
    297297        // get pointer on buffer for current page
    298         current_page_buffer = (uint32_t *)ppm_page2vaddr( current_page_desc );
     298        xptr_t base_xp = ppm_page2base( XPTR( local_cxy , current_page_desc ) );
     299        current_page_buffer = (uint32_t *)GET_PTR( base_xp );
    299300
    300301        // get FAT slot content
     
    473474
    474475    // get memory buffer base address
    475     uint8_t * buffer = (uint8_t *)ppm_page2vaddr( page );
     476    xptr_t base_xp = ppm_page2base( XPTR( local_cxy , page ) );
     477    uint8_t * buffer = (uint8_t *)GET_PTR( base_xp );
    476478 
    477479    // get number of sectors from FATFS context
     
    604606
    605607        // get page base
    606         base = ppm_page2vaddr( page );
     608        xptr_t base_xp = ppm_page2base( XPTR( local_cxy , page ) );
     609        base = (uint8_t *)GET_PTR( base_xp );
    607610
    608611#if (CONFIG_FATFS_DEBUG > 1)
Note: See TracChangeset for help on using the changeset viewer.