Changeset 433 for trunk/kernel/mm/kmem.c
- Timestamp:
- Feb 14, 2018, 3:40:19 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/kmem.c
r429 r433 198 198 if( type == KMEM_PAGE ) // PPM allocator 199 199 { 200 201 #if CONFIG_DEBUG_KMEM_ALLOC 202 if( CONFIG_DEBUG_KMEM_ALLOC < (uint32_t)hal_get_cycles() ) 203 printk("\n[DBG] in %s : thread %x enter for %d page(s)\n", 204 __FUNCTION__ , CURRENT_THREAD , 1<<size ); 205 #endif 206 200 207 // allocate the number of requested pages 201 208 ptr = (void *)ppm_alloc_pages( size ); … … 213 220 __FUNCTION__, local_cxy , kmem_type_str( type ) , 214 221 (intptr_t)ptr , (intptr_t)ppm_page2base( ptr ) ); 222 223 #if CONFIG_DEBUG_KMEM_ALLOC 224 if( CONFIG_DEBUG_KMEM_ALLOC < (uint32_t)hal_get_cycles() ) 225 printk("\n[DBG] in %s : thread %x exit / %d page(s) allocated / ppn = %x\n", 226 __FUNCTION__ , CURRENT_THREAD , 1<<size , ppm_page2ppn( XPTR( local_cxy , ptr ) ) ); 227 #endif 228 215 229 } 216 230 else if( type == KMEM_GENERIC ) // KHM allocator
Note: See TracChangeset
for help on using the changeset viewer.