Changeset 315 for trunk/kernel/kern/thread.c
- Timestamp:
- Aug 3, 2017, 10:15:18 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.