Changeset 330
- Timestamp:
- Aug 7, 2017, 10:05:40 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/mapper.c
r315 r330 213 213 214 214 // update the mapper and index fields in page descriptor 215 // required by the vfs_move_page_to_mapper() 215 // required by the vfs_move_page_to_mapper() 216 216 page->mapper = mapper; 217 217 page->index = index; … … 313 313 uint8_t * map_ptr; // current mapper address 314 314 uint8_t * buf_ptr; // current buffer address 315 315 316 316 mapper_dmsg("\n[INFO] %s : enters / to_buf = %d / buffer = %x\n", 317 317 __FUNCTION__ , to_buffer , buffer ); … … 359 359 360 360 // move fragment 361 if( to_buffer ) 361 if( to_buffer ) 362 362 { 363 363 hal_copy_to_uspace( buf_ptr , map_ptr , page_count ); 364 364 } 365 else 365 else 366 366 { 367 367 page_do_dirty( page ); … … 396 396 uint8_t * dst_ptr; // destination buffer local pointer 397 397 cxy_t dst_cxy; // destination cluster 398 398 399 399 mapper_dmsg("\n[INFO] %s : enters / to_buf = %d / buffer = %l / size = %x / cycle %d\n", 400 400 __FUNCTION__ , to_buffer , buffer_xp , size , hal_time_stamp() ); … … 449 449 // get page base address 450 450 uint8_t * base = (uint8_t *)GET_PTR( XPTR( local_cxy , page ) ); 451 451 452 452 // compute source and destination pointers 453 453 if( to_buffer ) … … 469 469 // move fragment 470 470 hal_remote_memcpy( XPTR( dst_cxy , dst_ptr ), XPTR( src_cxy , src_ptr ), page_count ); 471 471 472 472 done += page_count; 473 473 }
Note: See TracChangeset
for help on using the changeset viewer.