Changeset 315 for trunk/kernel/vfs
- Timestamp:
- Aug 3, 2017, 10:15:18 AM (7 years ago)
- Location:
- trunk/kernel/vfs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/vfs/fatfs.c
r279 r315 296 296 297 297 // 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 ); 299 300 300 301 // get FAT slot content … … 473 474 474 475 // 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 ); 476 478 477 479 // get number of sectors from FATFS context … … 604 606 605 607 // 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 ); 607 610 608 611 #if (CONFIG_FATFS_DEBUG > 1) -
trunk/kernel/vfs/vfs.c
r313 r315 702 702 else 703 703 { 704 rpc_mapper_move_ user_client( file_cxy,705 mapper,706 to_buffer,707 true, // user buffer708 file_offset,709 (uint64_t)(intptr_t)buffer,710 size,711 &error );704 rpc_mapper_move_buffer_client( file_cxy, 705 mapper, 706 to_buffer, 707 true, // user buffer 708 file_offset, 709 (uint64_t)(intptr_t)buffer, 710 size, 711 &error ); 712 712 } 713 713
Note: See TracChangeset
for help on using the changeset viewer.