Changeset 53 for trunk/kernel/kern
- Timestamp:
- Jun 26, 2017, 4:22:00 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/thread.c
r50 r53 84 84 // return pointer on new thread descriptor 85 85 if( page == NULL ) return NULL; 86 else return (thread_t *)ppm_page2 base( page );86 else return (thread_t *)ppm_page2vaddr( page ); 87 87 } 88 88 89 89 ///////////////////////////////////////////////////////////////////////////////////// 90 90 // This static function releases the physical memory for a thread descriptor. 91 // It can becalled by the three functions:91 // It is called by the three functions: 92 92 // - thread_user_create() 93 93 // - thread_user_fork() … … 101 101 102 102 req.type = KMEM_PAGE; 103 req.ptr = ppm_ base2page( thread );103 req.ptr = ppm_vaddr2page( thread ); 104 104 kmem_free( &req ); 105 105 } … … 442 442 { 443 443 req.type = KMEM_PAGE; 444 req.ptr = ppm_ base2page( thread );444 req.ptr = ppm_vaddr2page( thread ); 445 445 kmem_free( &req ); 446 446 return EINVAL;
Note: See TracChangeset
for help on using the changeset viewer.