Changeset 566 for trunk/kernel/syscalls/sys_exec.c
- Timestamp:
- Oct 4, 2018, 11:50:21 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_exec.c
r509 r566 158 158 // the environment variables from user buffers to the exec_info_t structure, allocate 159 159 // and call the process_make_exec() function. 160 // As it must destroy all process copies, and all other tthreads in all clusters,160 // As it must destroy all process copies, and all other threads in all clusters, 161 161 // the process_make_exec() function must be executed in the owner cluster. 162 162 // 163 163 // TODO : the args & envs arguments are not supported yet : both must be NULL [AG] 164 164 ///////////////////////////////////////////////////////////////////////////////////////// 165 int sys_exec( c onst char * pathname,// .elf file pathname165 int sys_exec( char * pathname, // .elf file pathname 166 166 char ** args, // process arguments 167 167 char ** envs ) // environment variables 168 168 { 169 exec_info_t exec_info; // structure to pass to process_make_exec()169 exec_info_t exec_info; // structure to pass to process_make_exec() 170 170 error_t error; 171 171 … … 175 175 pid_t pid = process->pid; 176 176 177 #if DEBUG_SYS_EXEC 178 uint64_t tm_start = hal_get_cycles(); 179 #endif 180 177 181 assert( (CXY_FROM_PID( pid ) == local_cxy) , 178 182 "must be called in the owner cluster\n"); … … 202 206 203 207 #if DEBUG_SYS_EXEC 204 uint64_t tm_start;205 tm_start = hal_get_cycles();206 208 if( DEBUG_SYS_EXEC < tm_start ) 207 209 printk("\n[DBG] %s : thread %x in process %x enter for path <%s> / cycle = %d\n",
Note: See TracChangeset
for help on using the changeset viewer.