Changeset 641 for trunk/kernel/syscalls/sys_munmap.c
- Timestamp:
- Oct 10, 2019, 1:42:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_munmap.c
r640 r641 54 54 #if DEBUG_SYS_MUNMAP 55 55 if( DEBUG_SYS_MUNMAP < tm_start ) 56 printk("\n[ DBG] %s : thread %x enter / process %x/ cycle %d\n",57 __FUNCTION__ , this, process->pid, (uint32_t)tm_start );56 printk("\n[%s] thread[%x,%x] enter / cycle %d\n", 57 __FUNCTION__, process->pid, this->trdid, (uint32_t)tm_start ); 58 58 #endif 59 59 … … 95 95 return -1; 96 96 } 97 else if( (vseg_min == addr_min) && (vseg_m in == vseg_max) )97 else if( (vseg_min == addr_min) && (vseg_max == addr_max) ) 98 98 { 99 99 100 100 #if( DEBUG_SYS_MUNMAP & 1 ) 101 if( DEBUG_SYS_MUNMAP < cycle)102 printk("\n[%s] unmapped region[%x->%x[ / vseg[%x->%x[ => vseg deleted\n",103 __FUNCTION__, addr_min, addr_max, vseg_min, vseg_max );101 if( DEBUG_SYS_MUNMAP < tm_start ) 102 printk("\n[%s] thread[%x,%x] unmapped region[%x->%x[ / vseg[%x->%x[ => delete vseg\n", 103 __FUNCTION__, process->pid, this->trdid, addr_min, addr_max, vseg_min, vseg_max ); 104 104 #endif 105 105 // delete existing vseg … … 107 107 vseg_min ); 108 108 } 109 else if( (vseg_min == addr_min) || (vseg_m in == vseg_max) )109 else if( (vseg_min == addr_min) || (vseg_max == addr_max) ) 110 110 { 111 111 112 112 #if( DEBUG_SYS_MUNMAP & 1 ) 113 if( DEBUG_SYS_MUNMAP < cycle)114 printk("\n[%s] unmapped region[%x->%x[ / vseg[%x->%x[ => vseg resized\n",115 __FUNCTION__, addr_min, addr_max, vseg_min, vseg_max );113 if( DEBUG_SYS_MUNMAP < tm_start ) 114 printk("\n[%s] thread[%x,%x] unmapped region[%x->%x[ / vseg[%x->%x[ => resize vseg\n", 115 __FUNCTION__, process->pid, this->trdid, addr_min, addr_max, vseg_min, vseg_max ); 116 116 #endif 117 117 // resize existing vseg … … 121 121 addr_max - addr_min ); 122 122 } 123 else // vseg_min < addr_min) && (addr_max < vseg_max)123 else // addr_min > vseg_min) && (addr_max < vseg_max) 124 124 { 125 125 126 126 #if( DEBUG_SYS_MUNMAP & 1 ) 127 if( DEBUG_SYS_MUNMAP < cycle)128 printk("\n[%s] unmapped region[%x->%x[ / vseg[%x->%x[ => vseg resized & new vseg created\n",129 __FUNCTION__, addr_min, addr_max, vseg_min, vseg_max );127 if( DEBUG_SYS_MUNMAP < tm_start ) 128 printk("\n[%s] thread[%x,%x] unmapped region[%x->%x[ / vseg[%x->%x[ => create new vseg\n", 129 __FUNCTION__, process->pid, this->trdid, addr_min, addr_max, vseg_min, vseg_max ); 130 130 #endif 131 131 // resize existing vseg … … 160 160 #if DEBUG_SYS_MUNMAP 161 161 if( DEBUG_SYS_MUNMAP < tm_start ) 162 printk("\n[ DBG] %s : thread %x exit / process %x/ cycle %d\n",163 __FUNCTION__ , this, process->pid, (uint32_t)tm_end );162 printk("\n[%s] thread [%x,%x] exit / cycle %d\n", 163 __FUNCTION__ , process->pid, this->trdid, (uint32_t)tm_end ); 164 164 #endif 165 165
Note: See TracChangeset
for help on using the changeset viewer.