Changeset 315 for trunk/kernel/kern
- Timestamp:
- Aug 3, 2017, 10:15:18 AM (7 years ago)
- Location:
- trunk/kernel/kern
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/rpc.c
r313 r315 1404 1404 user_buffer = (void *)(intptr_t)hal_remote_lwd( XPTR( client_cxy , &desc->args[4] ) ); 1405 1405 1406 error = mapper_move_user _buffer( mapper,1407 1408 1409 1410 1406 error = mapper_move_user( mapper, 1407 to_buffer, 1408 file_offset, 1409 user_buffer, 1410 size ); 1411 1411 } 1412 1412 else … … 1414 1414 kern_buffer = (xptr_t)hal_remote_lwd( XPTR( client_cxy , &desc->args[4] ) ); 1415 1415 1416 error = mapper_move_ user_buffer( mapper,1417 1418 1419 1420 1416 error = mapper_move_kernel( mapper, 1417 to_buffer, 1418 file_offset, 1419 kern_buffer, 1420 size ); 1421 1421 } 1422 1422 -
trunk/kernel/kern/thread.c
r296 r315 82 82 page = kmem_alloc( &req ); 83 83 84 if( page == NULL ) return NULL; 85 84 86 // return pointer on new thread descriptor 85 if( page == NULL ) return NULL; 86 else return (thread_t *)ppm_page2vaddr( page ); 87 } 87 xptr_t base_xp = ppm_page2base( XPTR(local_cxy , page ) ); 88 return (thread_t *)GET_PTR( base_xp ); 89 90 } // end thread_alloc() 91 88 92 89 93 ///////////////////////////////////////////////////////////////////////////////////// … … 100 104 kmem_req_t req; 101 105 106 xptr_t base_xp = ppm_base2page( XPTR(local_cxy , thread ) ); 107 102 108 req.type = KMEM_PAGE; 103 req.ptr = ppm_vaddr2page( thread);109 req.ptr = GET_PTR( base_xp ); 104 110 kmem_free( &req ); 105 111 }
Note: See TracChangeset
for help on using the changeset viewer.