Changeset 352
- Timestamp:
- Aug 9, 2017, 10:46:05 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/kcm.c
r315 r352 91 91 // It changes the kcm_page status if required. 92 92 ///////////////////////////////////////////////////////////////////////////////////// 93 // @ kcm : pointer on kcm allocator. 94 // @ ptr : pointer on block to be released. 95 ///////////////////////////////////////////////////////////////////////////////////// 96 static void kcm_put_block ( kcm_t * kcm, 97 void * ptr ) 98 { 99 kcm_page_t * kcm_page; 93 // @ kcm : pointer on kcm allocator. 94 // @ kcm_page : pointer on kcm_page. 95 // @ ptr : pointer on block to be released. 96 ///////////////////////////////////////////////////////////////////////////////////// 97 static void kcm_put_block ( kcm_t * kcm, 98 kcm_page_t * kcm_page, 99 void * ptr ) 100 { 100 101 uint32_t index; 101 102 // compute pointer on kcm_page from block pointer103 kcm_page = (kcm_page_t*)((intptr_t)ptr & ~CONFIG_PPM_PAGE_MASK);104 102 105 103 // compute block index from block pointer … … 343 341 344 342 // release block 345 kcm_put_block( kcm , ptr );343 kcm_put_block( kcm , kcm_page , ptr ); 346 344 347 345 // release lock
Note: See TracChangeset
for help on using the changeset viewer.