Changeset 315 for trunk/kernel/mm/mapper.c
- Timestamp:
- Aug 3, 2017, 10:15:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/mapper.c
r313 r315 349 349 350 350 // compute pointer in mapper 351 map_ptr = (uint8_t *)ppm_page2vaddr( page ) + page_offset; 351 xptr_t base_xp = ppm_page2base( XPTR( local_cxy, page ) ); 352 map_ptr = (uint8_t *)GET_PTR( base_xp ) + page_offset; 352 353 353 354 // compute pointer in buffer … … 446 447 if ( page == NULL ) return EINVAL; 447 448 449 // get page base address 450 uint8_t * base = (uint8_t *)GET_PTR( XPTR( local_cxy , page ) ); 451 448 452 // compute source and destination pointers 449 453 if( to_buffer ) 450 454 { 451 dst_ptr = buf _ptr + done;452 src_ptr = (uint8_t *)ppm_page2vaddr( page )+ page_offset;455 dst_ptr = buffer_ptr + done; 456 src_ptr = base + page_offset; 453 457 } 454 458 else 455 459 { 456 src_ptr = buf _ptr + done;457 dst_ptr = (uint8_t *)ppm_page2vaddr( page )+ page_offset;460 src_ptr = buffer_ptr + done; 461 dst_ptr = base + page_offset; 458 462 459 463 page_do_dirty( page );
Note: See TracChangeset
for help on using the changeset viewer.