Changeset 101 for trunk/kernel/syscalls
- Timestamp:
- Jun 29, 2017, 4:44:52 PM (7 years ago)
- Location:
- trunk/kernel/syscalls
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/syscalls/sys_clock.c
r23 r101 24 24 #include <hal_types.h> 25 25 #include <hal_uspace.h> 26 #include <hal_special.h> 26 27 #include <errno.h> 27 28 #include <core.h> … … 53 54 54 55 // call relevant core function 55 k_cycles = core_get_cycles( this->core);56 k_cycles = hal_get_cycles(); 56 57 57 58 // copy to user space -
trunk/kernel/syscalls/sys_exec.c
r53 r101 225 225 " / target_cluster = %x / cycle %d\n", 226 226 __FUNCTION__, process->pid , CURRENT_CORE->lid, 227 cxy_client, cxy_server, hal_time_stamp()); 228 229 // initialize exec_info structure 230 exec_info.pid = process->pid; 231 exec_info.ppid = process->ppid; 232 exec_info.fd_array_xp = XPTR( local_cxy , &process->fd_array ); 233 exec_info.vfs_root_xp = process->vfs_root_xp; 234 exec_info.vfs_cwd_xp = process->vfs_cwd_xp; 235 exec_info.vfs_bin_xp = process->vfs_bin_xp; 227 cxy_client, cxy_server, hal_get_cycles()); 228 229 // register reference parent process in exec_info 230 exec_info.parent_xp = process->ref_xp; 236 231 237 232 // check pathname and store it in exec_info structure … … 266 261 267 262 exec_dmsg("\n[INFO] %s starts exec for process %x at cycle %d\n", 268 __FUNCTION__, process->pid, hal_ time_stamp() );263 __FUNCTION__, process->pid, hal_get_cycles() ); 269 264 270 265 if( is_local ) error = process_make_exec( &exec_info ); … … 280 275 281 276 exec_dmsg("\n[INFO] %s completes exec for process %x at cycle %d\n", 282 __FUNCTION__, process->pid , hal_ time_stamp() );277 __FUNCTION__, process->pid , hal_get_cycles() ); 283 278 284 279 // delete the calling thread an process -
trunk/kernel/syscalls/sys_fork.c
r23 r101 64 64 65 65 fork_dmsg("\n[INFO] %s : enters for process %d at cycle [%d]\n", 66 __FUNCTION__, parent_process->pid, hal_ time_stamp());66 __FUNCTION__, parent_process->pid, hal_get_cycles()); 67 67 68 68 // save FPU state in fpu_context if parent process is FPU owner … … 214 214 215 215 fork_dmsg("\n[INFO] %s : completed / parent pid = %x / child pid = %x / at cycle [%d]\n", 216 __FUNCTION__, parent_process->pid, child_process->pid, hal_ time_stamp() );216 __FUNCTION__, parent_process->pid, child_process->pid, hal_get_cycles() ); 217 217 218 218 return child_process->pid; -
trunk/kernel/syscalls/sys_thread_create.c
r23 r101 61 61 uint32_t tm_end; 62 62 63 tm_start = hal_ time_stamp();63 tm_start = hal_get_cycles(); 64 64 65 65 // get parent thead pointer, extended pointer, and process pointer … … 160 160 thread_child_parent_link( parent_xp , child_xp ); 161 161 162 tm_end = hal_ time_stamp();162 tm_end = hal_get_cycles(); 163 163 164 164 thread_dmsg("\n[INFO] %s created thread %x for process %x in cluster %x\n" -
trunk/kernel/syscalls/sys_thread_sleep.c
r50 r101 31 31 { 32 32 thread_dmsg("\n[INFO] %s : thread %x in process %x goes to sleep at cycle %d\n", 33 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_ time_stamp() );33 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_get_cycles() ); 34 34 35 35 thread_block( CURRENT_THREAD , THREAD_BLOCKED_GLOBAL ); … … 37 37 38 38 thread_dmsg("\n[INFO] %s : thread %x in process %x resume at cycle\n", 39 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_ time_stamp() );39 __FUNCTION__, CURRENT_THREAD->trdid, CURRENT_PROCESS->pid, hal_get_cycles() ); 40 40 41 41 return 0;
Note: See TracChangeset
for help on using the changeset viewer.