Changeset 101 for trunk/kernel/mm
- Timestamp:
- Jun 29, 2017, 4:44:52 PM (7 years ago)
- Location:
- trunk/kernel/mm
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/mm/kcm.c
r65 r101 302 302 303 303 kcm_dmsg("\n[INFO] %s : enters for type %s at cycle %d / new page = %x / count = %d\n", 304 __FUNCTION__ , kmem_type_str( kcm->type ) , hal_ time_stamp() ,304 __FUNCTION__ , kmem_type_str( kcm->type ) , hal_get_cycles() , 305 305 (intptr_t)kcm_page , kcm_page->count ); 306 306 … … 312 312 313 313 kcm_dmsg("\n[INFO] %s : enters for type %s at cycle %d / page = %x / count = %d\n", 314 __FUNCTION__ , kmem_type_str( kcm->type ) , hal_ time_stamp() ,314 __FUNCTION__ , kmem_type_str( kcm->type ) , hal_get_cycles() , 315 315 (intptr_t)kcm_page , kcm_page->count ); 316 316 } -
trunk/kernel/mm/vmm.c
r68 r101 482 482 483 483 vmm_dmsg("\n[INFO] %s enter for process %x / base = %x / size = %x / type = %s\n", 484 __FUNCTION__ , process->pid , base , size , vseg_type_ name[type]);484 __FUNCTION__ , process->pid , base , size , vseg_type_str(type) ); 485 485 486 486 // compute base, size, vpn_base, vpn_size, depending on type -
trunk/kernel/mm/vseg.c
r18 r101 46 46 //////////////////////////////////////////////////////////////////////////////////////// 47 47 48 const char* vseg_type_name[VSEG_TYPES_NR] = 49 { 50 "CODE", 51 "DATA", 52 "HEAP", 53 "STACK", 54 "ANON", 55 "FILE", 56 "REMOTE", 57 "KCODE", 58 "KDATA", 59 "KDEV", 60 }; 61 48 49 ////////////////////////////////////////// 50 char * vseg_type_str( uint32_t vseg_type ) 51 { 52 if ( vseg_type == VSEG_TYPE_CODE ) return "CODE"; 53 else if( vseg_type == VSEG_TYPE_DATA ) return "DATA"; 54 else if( vseg_type == VSEG_TYPE_HEAP ) return "HEAP"; 55 else if( vseg_type == VSEG_TYPE_STACK ) return "STACK"; 56 else if( vseg_type == VSEG_TYPE_ANON ) return "ANON"; 57 else if( vseg_type == VSEG_TYPE_FILE ) return "FILE"; 58 else if( vseg_type == VSEG_TYPE_REMOTE ) return "REMOTE"; 59 else if( vseg_type == VSEG_TYPE_KCODE ) return "KCODE"; 60 else if( vseg_type == VSEG_TYPE_KDATA ) return "KDATA"; 61 else if( vseg_type == VSEG_TYPE_KDEV ) return "KDEV"; 62 else return "undefined"; 63 } 62 64 63 65 ///////////////////// -
trunk/kernel/mm/vseg.h
r18 r101 89 89 90 90 /********************************************************************************************** 91 * This function returns a printable string for the vseg type. 92 ********************************************************************************************** 93 * @ vseg_type : type of vseg 94 * @ return pointer on string 95 *********************************************************************************************/ 96 char * vseg_type_str( uint32_t vseg_type ); 97 98 /********************************************************************************************** 91 99 * This function allocates physical memory for a new vseg descriptor from the local cluster 92 100 * physical memory allocator.
Note: See TracChangeset
for help on using the changeset viewer.